mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
chore: Upgrade matchit to 0.8 (#2645)
This commit is contained in:
@@ -25,7 +25,7 @@ async fn main() {
|
||||
.init();
|
||||
|
||||
// build our application with a route
|
||||
let app = Router::new().route("/users/:user_id/teams/:team_id", get(handler));
|
||||
let app = Router::new().route("/users/{user_id}/teams/{team_id}", get(handler));
|
||||
|
||||
// run it
|
||||
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
|
||||
|
||||
Reference in New Issue
Block a user