forked from forgejo/forgejo
Fix bugs related to notification endpoints (#25548)
This commit is contained in:
parent
fdab4e3d84
commit
defd807073
3 changed files with 4 additions and 4 deletions
|
@ -777,11 +777,11 @@ func Routes() *web.Route {
|
|||
m.Group("/notifications", func() {
|
||||
m.Combo("").
|
||||
Get(notify.ListNotifications).
|
||||
Put(notify.ReadNotifications, reqToken())
|
||||
Put(reqToken(), notify.ReadNotifications)
|
||||
m.Get("/new", notify.NewAvailable)
|
||||
m.Combo("/threads/{id}").
|
||||
Get(notify.GetThread).
|
||||
Patch(notify.ReadThread, reqToken())
|
||||
Patch(reqToken(), notify.ReadThread)
|
||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryNotification))
|
||||
|
||||
// Users (requires user scope)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue