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(