1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#1601 support delete issue comment

This commit is contained in:
Unknwon
2016-07-26 02:48:17 +08:00
parent 2295fafb34
commit 899e799459
14 changed files with 113 additions and 27 deletions

View File

@@ -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)