From 1763aef3f7f16888da2a1e6d09fe460d8d546991 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Fri, 16 Jan 2026 18:28:56 +0100 Subject: [PATCH] group with other post routes --- routers/web/githttp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/githttp.go b/routers/web/githttp.go index 4cb573e315..4ba766c2c7 100644 --- a/routers/web/githttp.go +++ b/routers/web/githttp.go @@ -13,6 +13,7 @@ func addOwnerRepoGitHTTPRouters(m *web.Router) { m.Group("/{username}/{reponame}", func() { m.Methods("POST,OPTIONS", "/git-upload-pack", repo.ServiceUploadPack) m.Methods("POST,OPTIONS", "/git-receive-pack", repo.ServiceReceivePack) + m.Post("/git-upload-archive", repo.ServiceUploadArchive) m.Methods("GET,OPTIONS", "/info/refs", repo.GetInfoRefs) m.Methods("GET,OPTIONS", "/HEAD", repo.GetTextFile("HEAD")) m.Methods("GET,OPTIONS", "/objects/info/alternates", repo.GetTextFile("objects/info/alternates")) @@ -22,6 +23,5 @@ func addOwnerRepoGitHTTPRouters(m *web.Router) { m.Methods("GET,OPTIONS", "/objects/{head:[0-9a-f]{2}}/{hash:[0-9a-f]{38,62}}", repo.GetLooseObject) m.Methods("GET,OPTIONS", "/objects/pack/pack-{file:[0-9a-f]{40,64}}.pack", repo.GetPackFile) m.Methods("GET,OPTIONS", "/objects/pack/pack-{file:[0-9a-f]{40,64}}.idx", repo.GetIdxFile) - m.Post("/git-upload-archive", repo.ServiceUploadArchive) }, repo.HTTPGitEnabledHandler, repo.CorsHandler(), optSignInFromAnyOrigin, context.UserAssignmentWeb()) }