summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 1acd849b8d..b68717f7c8 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -690,6 +690,11 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/start", reqToken(), repo.StartIssueStopwatch)
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
})
+ m.Group("/subscriptions", func() {
+ m.Get("", bind(api.User{}), repo.GetIssueSubscribers)
+ m.Put("/:user", repo.AddIssueSubscription)
+ m.Delete("/:user", repo.DelIssueSubscription)
+ })
})
}, mustEnableIssuesOrPulls)
m.Group("/labels", func() {