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:
co-authored by
Claude Sonnet 4.6
parent
222495472a
commit
c38b718eb4
@@ -11,7 +11,7 @@ pub fn hackathon_certificates_routes(pool: Arc<PgPool>) -> Router {
|
||||
Arc::new(PostgresCertificateRepository::new(pool.clone())),
|
||||
));
|
||||
Router::new()
|
||||
.route("/certificates/:user_id", get(get_certificate_handler))
|
||||
.route("/certificates/{user_id}", get(get_certificate_handler))
|
||||
.layer(Extension(service))
|
||||
.layer(Extension(pool))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user