This commit is contained in:
2024-05-06 22:21:25 +02:00
parent 6f073eb304
commit e6e3b0aa6a

View File

@@ -44,7 +44,7 @@ pub async fn get_router() -> Router {
let (prometheus_layer, metric_handle) = PrometheusMetricLayer::pair();
let app_router = Router::new()
.route("/upload", post(upload))
.route("/upload/", post(upload))
.route("/download_by_message/:chat_id/:message_id", get(download))
.layer(DefaultBodyLimit::max(BODY_LIMIT))
.layer(middleware::from_fn(auth))