mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-20 11:43:40 +09:00
subscribers return []user.APIFormat
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user