diff --git a/axum/src/docs/extract.md b/axum/src/docs/extract.md index feef409f27..6f0f6853bb 100644 --- a/axum/src/docs/extract.md +++ b/axum/src/docs/extract.md @@ -82,7 +82,7 @@ async fn extension(Extension(state): Extension) {} 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))