mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 14:36:05 +01:00
API issue_subscripton: Put/Delete require tocken
This commit is contained in:
parent
717237a91e
commit
52cc73b14b
@ -692,8 +692,8 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
})
|
||||
m.Group("/subscriptions", func() {
|
||||
m.Get("", bind(api.User{}), repo.GetIssueSubscribers)
|
||||
m.Put("/:user", repo.AddIssueSubscription)
|
||||
m.Delete("/:user", repo.DelIssueSubscription)
|
||||
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
||||
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
||||
})
|
||||
})
|
||||
}, mustEnableIssuesOrPulls)
|
||||
|
Loading…
Reference in New Issue
Block a user