forked from kevadesu/forgejo
subscribers return []user.APIFormat
This commit is contained in:
parent
06daf4e863
commit
deaf69c801
3 changed files with 6 additions and 13 deletions
|
@ -689,7 +689,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
||||
})
|
||||
m.Group("/subscriptions", func() {
|
||||
m.Get("", reqToken(), bind(api.IssueWatchers{}), repo.GetIssueWatchers)
|
||||
m.Get("", reqToken(), bind(api.User{}), repo.GetIssueWatchers)
|
||||
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
||||
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue