Cleanup one duplicated reqToken call
This commit is contained in:
parent
f45bfe3b4d
commit
0f25b04505
1 changed files with 2 additions and 2 deletions
|
@ -817,8 +817,8 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
m.Post("/reject", repo.RejectTransfer)
|
||||
}, reqToken(auth_model.AccessTokenScopeRepo))
|
||||
m.Combo("/notifications", reqToken(auth_model.AccessTokenScopeNotification)).
|
||||
Get(reqToken(""), notify.ListRepoNotifications).
|
||||
Put(reqToken(""), notify.ReadRepoNotifications)
|
||||
Get(notify.ListRepoNotifications).
|
||||
Put(notify.ReadRepoNotifications)
|
||||
m.Group("/hooks/git", func() {
|
||||
m.Combo("").Get(reqToken(auth_model.AccessTokenScopeReadRepoHook), repo.ListGitHooks)
|
||||
m.Group("/{id}", func() {
|
||||
|
|
Loading…
Add table
Reference in a new issue