mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-18 08:00:01 +02:00
Backport #26134 by @wxiaoguang Fix #26035 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit a8445e93204ab91065c45223bf5d4f7e06578549)
This commit is contained in:
parent
bbc3426c53
commit
df5200e814
4 changed files with 33 additions and 63 deletions
|
@ -757,7 +757,7 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
|
||||
}
|
||||
|
||||
// Misc (requires 'misc' scope)
|
||||
// Misc (public accessible)
|
||||
m.Group("", func() {
|
||||
m.Get("/version", misc.Version)
|
||||
m.Get("/signing-key.gpg", misc.SigningKey)
|
||||
|
@ -777,7 +777,7 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
m.Get("/attachment", settings.GetGeneralAttachmentSettings)
|
||||
m.Get("/repository", settings.GetGeneralRepoSettings)
|
||||
})
|
||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryMisc))
|
||||
})
|
||||
|
||||
// Notifications (requires 'notifications' scope)
|
||||
m.Group("/notifications", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue