forked from forgejo/forgejo
add issue subscriber API
This commit is contained in:
parent
c4f9d06855
commit
06daf4e863
5 changed files with 378 additions and 0 deletions
|
@ -688,6 +688,11 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Post("/start", reqToken(), repo.StartIssueStopwatch)
|
||||
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
||||
})
|
||||
m.Group("/subscriptions", func() {
|
||||
m.Get("", reqToken(), bind(api.IssueWatchers{}), repo.GetIssueWatchers)
|
||||
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
||||
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
||||
})
|
||||
})
|
||||
}, mustEnableIssuesOrPulls)
|
||||
m.Group("/labels", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue