mirror of
https://github.com/flibusta-apps/batch_downloader.git
synced 2025-12-06 06:15:37 +01:00
Fix
This commit is contained in:
@@ -106,7 +106,6 @@ pub async fn get_router() -> Router {
|
|||||||
"/api/check_archive/:task_id",
|
"/api/check_archive/:task_id",
|
||||||
get(check_archive_task_status),
|
get(check_archive_task_status),
|
||||||
)
|
)
|
||||||
.route("/api/download/:task_id", get(download))
|
|
||||||
.layer(middleware::from_fn(auth))
|
.layer(middleware::from_fn(auth))
|
||||||
.layer(prometheus_layer);
|
.layer(prometheus_layer);
|
||||||
|
|
||||||
@@ -114,6 +113,7 @@ pub async fn get_router() -> Router {
|
|||||||
Router::new().route("/metrics", get(|| async move { metric_handle.render() }));
|
Router::new().route("/metrics", get(|| async move { metric_handle.render() }));
|
||||||
|
|
||||||
Router::new()
|
Router::new()
|
||||||
|
.route("/api/download/:task_id", get(download))
|
||||||
.nest("/", app_router)
|
.nest("/", app_router)
|
||||||
.nest("/", metric_router)
|
.nest("/", metric_router)
|
||||||
.layer(
|
.layer(
|
||||||
|
|||||||
Reference in New Issue
Block a user