From 371572cf5f853211fb11bb28bc41658119d3e247 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 20 Aug 2015 04:31:28 +0800 Subject: allow edit issue and comment --- cmd/web.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 1511d576..94c0a6a9 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -467,12 +467,17 @@ func runWeb(ctx *cli.Context) { m.Combo("/:index/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) m.Group("/:index", func() { - m.Post("/title", repo.UpdateIssueTitle) m.Post("/label", repo.UpdateIssueLabel) m.Post("/milestone", repo.UpdateIssueMilestone) m.Post("/assignee", repo.UpdateIssueAssignee) }, reqRepoAdmin) + + m.Group("/:index", func() { + m.Post("/title", repo.UpdateIssueTitle) + m.Post("/content", repo.UpdateIssueContent) + }) }) + m.Post("/comments/:id", repo.UpdateCommentContent) m.Group("/labels", func() { m.Post("/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel) m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) -- cgit v1.2.3