Browse Source

API issue_subscripton: Put/Delete require tocken

pull/8738/head
6543 6 years ago
parent
commit
52cc73b14b
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271
  1. 4
      routers/api/v1/api.go

4
routers/api/v1/api.go

@ -692,8 +692,8 @@ func RegisterRoutes(m *macaron.Macaron) {
}) })
m.Group("/subscriptions", func() { m.Group("/subscriptions", func() {
m.Get("", bind(api.User{}), repo.GetIssueSubscribers) m.Get("", bind(api.User{}), repo.GetIssueSubscribers)
m.Put("/:user", repo.AddIssueSubscription) m.Put("/:user", reqToken(), repo.AddIssueSubscription)
m.Delete("/:user", repo.DelIssueSubscription) m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
}) })
}) })
}, mustEnableIssuesOrPulls) }, mustEnableIssuesOrPulls)

Loading…
Cancel
Save