Skip to content

Commit 6ebcb66

Browse files
committed
router: update dev-mode /git/index path to Axum 0.8 format
Fixes #10362.
1 parent 18b87b3 commit 6ebcb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub fn build_axum_router(state: AppState) -> Router<()> {
104104
// or from the sparse index CDN https://index.crates.io.
105105
if state.config.env() == Env::Development {
106106
router = router.route(
107-
"/git/index/*path",
107+
"/git/index/{*path}",
108108
get(git::http_backend).post(git::http_backend),
109109
);
110110
}

0 commit comments

Comments
 (0)