aboutsummaryrefslogtreecommitdiffstats
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.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index c2f019eb41..0bb5320b16 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -687,8 +687,11 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Delete("/:id", reqToken(), repo.DeleteIssueLabel)
})
m.Group("/times", func() {
- m.Combo("").Get(repo.ListTrackedTimes).
- Post(reqToken(), bind(api.AddTimeOption{}), repo.AddTime)
+ m.Combo("", reqToken()).
+ Get(repo.ListTrackedTimes).
+ Post(bind(api.AddTimeOption{}), repo.AddTime).
+ Delete(repo.ResetIssueTime)
+ m.Delete("/:id", reqToken(), repo.DeleteTime)
})
m.Combo("/deadline").Post(reqToken(), bind(api.EditDeadlineOption{}), repo.UpdateIssueDeadline)
m.Group("/stopwatch", func() {