Skip to content

Commit

Permalink
A wild ) appeared
Browse files Browse the repository at this point in the history
  • Loading branch information
cikzh committed Feb 10, 2025
1 parent 1155d9f commit ae34103
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/authentication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn router(pool: SqlitePool) -> Result<Router, Box<dyn Error>> {
"/",
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))
Expand Down

0 comments on commit ae34103

Please sign in to comment.