subscribers return []user.APIFormat

This commit is contained in:
6543 2019-10-29 12:45:37 +01:00
parent 06daf4e863
commit deaf69c801
No known key found for this signature in database
GPG key ID: A1CA74D27FD13271
3 changed files with 6 additions and 13 deletions

View file

@ -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)
})