mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 07:48:39 +01:00
Fix path route in extractor docs (#711)
This commit is contained in:
parent
5ffab810c0
commit
50f42d8071
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ async fn extension(Extension(state): Extension<State>) {}
|
|||
struct State { /* ... */ }
|
||||
|
||||
let app = Router::new()
|
||||
.route("/path", post(path))
|
||||
.route("/path/:user_id", post(path))
|
||||
.route("/query", post(query))
|
||||
.route("/user_agent", post(user_agent))
|
||||
.route("/headers", post(headers))
|
||||
|
|
Loading…
Reference in a new issue