Skip to content

Commit

Permalink
Fix route of development/echo (#1273)
Browse files Browse the repository at this point in the history
Now that we normalize paths, any routes registered with a slash at the
end can't actually be hit at all as the trailing slash will be stripped
before the request goes to the router.

Follow-up to #1270
  • Loading branch information
svix-jplatte authored Mar 13, 2024
1 parent 80e7265 commit 77c419c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/svix-server/src/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ mod development {
}

pub fn router() -> Router<AppState> {
Router::new().route("/development/echo/", get(echo).post(echo))
Router::new().route("/development/echo", get(echo).post(echo))
}
}

0 comments on commit 77c419c

Please sign in to comment.