From 50f42d8071d0e22afd1015560a2e5fa8291620c9 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 feef409f..6f0f6853 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))