From 340948c337188c4115713fe84cb2e814defe6fcd Mon Sep 17 00:00:00 2001 From: Aaron Erhardt Date: Tue, 18 Jan 2022 14:22:54 +0100 Subject: [PATCH] Fix path route in extractor docs (#711) --- axum/src/docs/extract.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))