From 6ebcb66583f8938c6fea769e10f9007439381a2b Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 9 Jan 2025 12:09:51 -0800 Subject: [PATCH] router: update dev-mode /git/index path to Axum 0.8 format Fixes #10362. --- src/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.rs b/src/router.rs index 0ce568e6137..10bf725826c 100644 --- a/src/router.rs +++ b/src/router.rs @@ -104,7 +104,7 @@ pub fn build_axum_router(state: AppState) -> Router<()> { // or from the sparse index CDN https://index.crates.io. if state.config.env() == Env::Development { router = router.route( - "/git/index/*path", + "/git/index/{*path}", get(git::http_backend).post(git::http_backend), ); }