Skip to content

Commit

Permalink
Fix path route in extractor docs (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt authored and davidpdrsn committed Feb 22, 2022
1 parent 2152f64 commit a14cbfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum/src/docs/extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a14cbfe

Please sign in to comment.