Expose issue stopwatch toggling via API (#5970)

This commit is contained in:
Lanre Adelowo 2019-02-07 03:57:25 +01:00 committed by techknowlogick
parent cc48c12d8f
commit 9dfdf80af0
3 changed files with 248 additions and 0 deletions

View file

@ -557,6 +557,10 @@ func RegisterRoutes(m *macaron.Macaron) {
})
m.Combo("/deadline").Post(reqToken(), bind(api.EditDeadlineOption{}), repo.UpdateIssueDeadline)
m.Group("/stopwatch", func() {
m.Post("/start", reqToken(), repo.StartIssueStopwatch)
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
})
})
}, mustEnableIssuesOrPulls)
m.Group("/labels", func() {