mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Expose issue stopwatch toggling via API (#5970)
This commit is contained in:
committed by
techknowlogick
parent
cc48c12d8f
commit
9dfdf80af0
@@ -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() {
|
||||
|
Reference in New Issue
Block a user