Update axum to 0.8

This commit is contained in:
2025-01-04 14:19:59 +01:00
parent ae1f850d44
commit 828964fac7
3 changed files with 42 additions and 108 deletions

View File

@@ -147,7 +147,7 @@ fn get_router() -> Router {
let (prometheus_layer, metric_handle) = PrometheusMetricLayer::pair();
let app_router = Router::new()
.route("/:file_format", post(convert_file))
.route("/{file_format}", post(convert_file))
.layer(middleware::from_fn(auth))
.layer(prometheus_layer);