mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-17 23:10:52 +02:00
Add comment
This commit is contained in:
parent
b6ff8e14a3
commit
75ee49c212
@ -979,6 +979,8 @@ func Routes() *web.Router {
|
|||||||
Get(reqToken(), notify.GetThread).
|
Get(reqToken(), notify.GetThread).
|
||||||
Patch(reqToken(), notify.ReadThread)
|
Patch(reqToken(), notify.ReadThread)
|
||||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryNotification), rejectPublicOnly())
|
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryNotification), rejectPublicOnly())
|
||||||
|
// notifications API should not be used with public-only tokens, as notifications are mixed with both public and private repositories
|
||||||
|
// if a token is used with notifications API, it should be required to have the notification scope, and the token should not be public-only
|
||||||
|
|
||||||
// Users (requires user scope)
|
// Users (requires user scope)
|
||||||
m.Group("/users", func() {
|
m.Group("/users", func() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user