summaryrefslogtreecommitdiffstats
path: root/routers/routes/web.go
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-02-19 10:52:11 +0000
committerGitHub <noreply@github.com>2021-02-19 12:52:11 +0200
commitd38ae597e19f58bcd732717fe09c1ea97ab8bb12 (patch)
tree839f0b3c92a4b98a7be3b8aa316925615c16c76e /routers/routes/web.go
parent6a696b93b1e7e9dc1e7cc51d4eab2932b072170f (diff)
downloadgitea-d38ae597e19f58bcd732717fe09c1ea97ab8bb12.tar.gz
gitea-d38ae597e19f58bcd732717fe09c1ea97ab8bb12.zip
Add UI to delete tracked times (#14100)
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers/routes/web.go')
-rw-r--r--routers/routes/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go
index b3edd8f713..dd43663e35 100644
--- a/routers/routes/web.go
+++ b/routers/routes/web.go
@@ -723,6 +723,7 @@ func RegisterRoutes(m *web.Route) {
m.Combo("/comments").Post(repo.MustAllowUserComment, bindIgnErr(auth.CreateCommentForm{}), repo.NewComment)
m.Group("/times", func() {
m.Post("/add", bindIgnErr(auth.AddTimeManuallyForm{}), repo.AddTimeManually)
+ m.Post("/{timeid}/delete", repo.DeleteTime)
m.Group("/stopwatch", func() {
m.Post("/toggle", repo.IssueStopwatch)
m.Post("/cancel", repo.CancelStopwatch)