diff options
author | Unknwon <u@gogs.io> | 2016-07-26 02:48:17 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-26 02:48:17 +0800 |
commit | 899e7994595f5fc500de8cdf39e1b737f9f00982 (patch) | |
tree | 1477940293968f1ee2781e04209b7038e9774d95 /cmd | |
parent | 2295fafb34e2467f3b380a4db8832aa2c70ecc5a (diff) | |
download | gitea-899e7994595f5fc500de8cdf39e1b737f9f00982.tar.gz gitea-899e7994595f5fc500de8cdf39e1b737f9f00982.zip |
#1601 support delete issue comment
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 5 |
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) |