Can update account information

This commit is contained in:
2025-04-07 21:13:36 +02:00
parent 559eadfd05
commit 1977b5209c
3 changed files with 32 additions and 19 deletions

View File

@ -107,7 +107,10 @@ async fn main() -> std::io::Result<()> {
"/api/account/{account_id}",
web::get().to(accounts_controller::get_single),
)
// TODO : update account
.route(
"/api/account/{account_id}",
web::put().to(accounts_controller::update),
)
.route(
"/api/account/{account_id}",
web::delete().to(accounts_controller::delete),