From 1c4f0f11066ce42f51989fe85d43f60c825eb5a6 Mon Sep 17 00:00:00 2001 From: Jonatan Czarniecki Date: Sat, 24 May 2025 13:58:29 +0200 Subject: [PATCH] add alternative paths with single slashes for compatibility with new versions --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index e254790..ab37851 100644 --- a/src/main.rs +++ b/src/main.rs @@ -182,6 +182,8 @@ async fn app() -> Result { let api = Router::new() .nest("//auth", api_auth::router()) // => /api//auth ¯\_(ツ)_/¯ .nest("//assets", api_assets::router()) + .nest("/auth", api_auth::router()) + .nest("/assets", api_assets::router()) .nest("/v1", api::sculptor::router(limit)) .route("/limits", get(api_info::limits)) .route("/version", get(api_info::version))