diff --git a/backend/src/authentication/mod.rs b/backend/src/authentication/mod.rs index ed4823b7f..07be6ee73 100644 --- a/backend/src/authentication/mod.rs +++ b/backend/src/authentication/mod.rs @@ -73,7 +73,7 @@ mod tests { let router = Router::new() .route("/api/user", get(api::user_list).post(api::user_create)) - .route("/api/user/{id}", put(api::user_update)) + .route("/api/user/{user_id}", put(api::user_update)) .route("/api/user/login", post(api::login)) .route("/api/user/logout", post(api::logout)) .route("/api/user/whoami", get(api::whoami)) diff --git a/backend/src/lib.rs b/backend/src/lib.rs index df7da6048..2a0b61989 100644 --- a/backend/src/lib.rs +++ b/backend/src/lib.rs @@ -89,7 +89,7 @@ pub fn router(pool: SqlitePool) -> Result> { "/", get(authentication::user_list).post(authentication::user_create), ) - .route("/{id})", put(authentication::user_update)) + .route("/{user_id}", put(authentication::user_update)) .route("/login", post(authentication::login)) .route("/logout", post(authentication::logout)) .route("/whoami", get(authentication::whoami))