diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-02-07 03:57:25 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-06 21:57:25 -0500 |
commit | 9dfdf80af08cee3b2f0297843084fe14e3af31e7 (patch) | |
tree | 82de57b6085e8dfa4c9697edbf6b13c1daf0e26d /routers/api/v1/api.go | |
parent | cc48c12d8f16dcb10b21972f7bfd631c5d15be48 (diff) | |
download | gitea-9dfdf80af08cee3b2f0297843084fe14e3af31e7.tar.gz gitea-9dfdf80af08cee3b2f0297843084fe14e3af31e7.zip |
Expose issue stopwatch toggling via API (#5970)
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 55f5c66290..c5a5488a81 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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() { |