aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 5dad8627b4..8845e11831 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -464,7 +464,10 @@ func runWeb(ctx *cli.Context) error {
m.Post("/content", repo.UpdateIssueContent)
})
})
- m.Post("/comments/:id", repo.UpdateCommentContent)
+ m.Group("/comments/:id", func() {
+ m.Post("", repo.UpdateCommentContent)
+ m.Post("/delete", repo.DeleteComment)
+ })
m.Group("/labels", func() {
m.Post("/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel)
m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel)