mirror of
https://codeberg.org/forgejo-aneksajo/forgejo-aneksajo.git
synced 2025-07-08 23:00:03 +02:00
Replace m.GetOptions with m.Methods
This applies the same changes that were done in
265cd70bdb
to the git-annex specific
routes as well.
This commit is contained in:
parent
f716837c9d
commit
74f40baf16
1 changed files with 2 additions and 2 deletions
|
@ -1605,8 +1605,8 @@ func registerRoutes(m *web.Route) {
|
||||||
|
|
||||||
m.Group("", func() {
|
m.Group("", func() {
|
||||||
// for git-annex
|
// for git-annex
|
||||||
m.GetOptions("/config", repo.GetTextFile("config")) // needed by clients reading annex.uuid during `git annex initremote`
|
m.Methods("GET,OPTIONS", "/config", repo.GetTextFile("config")) // needed by clients reading annex.uuid during `git annex initremote`
|
||||||
m.GetOptions("/annex/objects/{hash1}/{hash2}/{keyDir}/{key}", repo.GetAnnexObject)
|
m.Methods("GET,OPTIONS", "/annex/objects/{hash1}/{hash2}/{keyDir}/{key}", repo.GetAnnexObject)
|
||||||
}, ignSignInAndCsrf, annexEnabled, context_service.UserAssignmentWeb())
|
}, ignSignInAndCsrf, annexEnabled, context_service.UserAssignmentWeb())
|
||||||
|
|
||||||
gitHTTPRouters(m)
|
gitHTTPRouters(m)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue