Fix path route in extractor docs (#711)

This commit is contained in:
Aaron Erhardt 2022-01-18 14:22:54 +01:00 committed by GitHub
parent 5ffab810c0
commit 50f42d8071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))