Skip to content

Commit eed80b6

Browse files
committed
Fix axum routes
1 parent 4098eef commit eed80b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c09/api-service/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub async fn create_router(
1616
Router::new()
1717
.route("/todos", get(todo_list).post(todo_create))
1818
.route(
19-
"/todos/:id",
19+
"/todos/{id}",
2020
get(todo_read).put(todo_update).delete(todo_delete),
2121
),
2222
)

0 commit comments

Comments
 (0)