From 3f4bf5cc3e1744042ab661a44913dc83bd1d0601 Mon Sep 17 00:00:00 2001 From: Artem Medvedev Date: Mon, 6 Jan 2025 00:46:04 +0100 Subject: [PATCH] test: use proper routing in tests for axum v0.8 --- protect-axum/tests/proc_macro/different_fn_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protect-axum/tests/proc_macro/different_fn_types.rs b/protect-axum/tests/proc_macro/different_fn_types.rs index d96afee..e595d1b 100644 --- a/protect-axum/tests/proc_macro/different_fn_types.rs +++ b/protect-axum/tests/proc_macro/different_fn_types.rs @@ -125,7 +125,7 @@ async fn get_user_response(uri: &str, role: &str) -> Response { async fn post_user_response(uri: &str, role: &str, data: &T) -> Response { let app = Router::new() - .route("/secure/:user_id", post(secure_user_id)) + .route("/secure/{user_id}", post(secure_user_id)) .layer(GrantsLayer::with_extractor(common::extract)); app.oneshot(