diff options
author | 6543 <6543@obermui.de> | 2019-12-12 05:23:05 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-11 23:23:05 -0500 |
commit | aceb1085c79e4c75268ce794a8ee84631382a403 (patch) | |
tree | 0e2a9137e07d04ff33c034f2a610e4a51fa0897a /routers/api/v1/api.go | |
parent | 382936a668c48b3c83fe80cdf138f76fb74a5f8f (diff) | |
download | gitea-aceb1085c79e4c75268ce794a8ee84631382a403.tar.gz gitea-aceb1085c79e4c75268ce794a8ee84631382a403.zip |
[API] extend StopWatch (#9196)
* squash api-stopwatch
* fix prepair logic! + add Tests
* fix lint
* more robust time compare
* delete responce 202 -> 204
* change http responce in test too
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index cd5fc1f3eb..7526d3f5ef 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -584,6 +584,8 @@ func RegisterRoutes(m *macaron.Macaron) { }) m.Get("/times", repo.ListMyTrackedTimes) + m.Get("/stopwatches", repo.GetStopwatches) + m.Get("/subscriptions", user.GetMyWatchedRepos) m.Get("/teams", org.ListUserTeams) @@ -691,6 +693,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/stopwatch", func() { m.Post("/start", reqToken(), repo.StartIssueStopwatch) m.Post("/stop", reqToken(), repo.StopIssueStopwatch) + m.Delete("/delete", reqToken(), repo.DeleteIssueStopwatch) }) m.Group("/subscriptions", func() { m.Get("", repo.GetIssueSubscribers) |