fix: migrate all route path params from :param to {param} syntax

Axum 0.8+ requires {param} capture group syntax.
:param style was causing runtime panic on startup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-04-02 23:56:59 +07:00
co-authored by Claude Sonnet 4.6
parent 222495472a
commit c38b718eb4
10 changed files with 27 additions and 27 deletions
@@ -17,16 +17,16 @@ pub fn build_join_request_routes(pool: Arc<PgPool>) -> Router {
));
Router::new()
.route(
"/join-requests/teams/:team_id",
"/join-requests/teams/{team_id}",
post(create_join_request_handler),
)
.route("/join-requests/my", get(get_my_join_requests_handler))
.route(
"/join-requests/teams/:team_id/pending",
"/join-requests/teams/{team_id}/pending",
get(get_team_join_requests_handler),
)
.route(
"/join-requests/:request_id/respond",
"/join-requests/{request_id}/respond",
post(respond_to_join_request_handler),
)
.layer(Extension(service))