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)
|
m.Post("/reject", repo.RejectTransfer)
|
||||||
}, reqToken(auth_model.AccessTokenScopeRepo))
|
}, reqToken(auth_model.AccessTokenScopeRepo))
|
||||||
m.Combo("/notifications", reqToken(auth_model.AccessTokenScopeNotification)).
|
m.Combo("/notifications", reqToken(auth_model.AccessTokenScopeNotification)).
|
||||||
Get(reqToken(""), notify.ListRepoNotifications).
|
Get(notify.ListRepoNotifications).
|
||||||
Put(reqToken(""), notify.ReadRepoNotifications)
|
Put(notify.ReadRepoNotifications)
|
||||||
m.Group("/hooks/git", func() {
|
m.Group("/hooks/git", func() {
|
||||||
m.Combo("").Get(reqToken(auth_model.AccessTokenScopeReadRepoHook), repo.ListGitHooks)
|
m.Combo("").Get(reqToken(auth_model.AccessTokenScopeReadRepoHook), repo.ListGitHooks)
|
||||||
m.Group("/{id}", func() {
|
m.Group("/{id}", func() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue