From 899e7994595f5fc500de8cdf39e1b737f9f00982 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 26 Jul 2016 02:48:17 +0800 Subject: #1601 support delete issue comment --- cmd/web.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd') 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) -- cgit v1.2.3