Skip to content

Commit

Permalink
test: use proper routing in tests for axum v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Jan 5, 2025
1 parent 2b320ac commit 3f4bf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protect-axum/tests/proc_macro/different_fn_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async fn get_user_response(uri: &str, role: &str) -> Response {

async fn post_user_response<T: Serialize>(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(
Expand Down

0 comments on commit 3f4bf5c

Please # to comment.