summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-09 15:23:02 +0800
committerUnknwon <u@gogs.io>2015-08-09 15:23:02 +0800
commit590c464c56c993c461f10470926a96448f4f7d00 (patch)
treee79642dd169eecc9757e1aa76f4e68568a6b9f46 /cmd
parent43a87b0caf50abe6d6b19adf10dd9f082c58ad61 (diff)
downloadgitea-590c464c56c993c461f10470926a96448f4f7d00.tar.gz
gitea-590c464c56c993c461f10470926a96448f4f7d00.zip
UI: create issue with title and content
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 2c931a59ba..99e3881353 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -419,8 +419,8 @@ func runWeb(ctx *cli.Context) {
m.Get("/action/:action", repo.Action)
m.Group("/issues", func() {
- m.Get("/new", repo.CreateIssue)
- m.Post("/new", bindIgnErr(auth.CreateIssueForm{}), repo.CreateIssuePost)
+ m.Combo("/new").Get(repo.NewIssue).
+ Post(bindIgnErr(auth.CreateIssueForm{}), repo.NewIssuePost)
m.Post("/:index", bindIgnErr(auth.CreateIssueForm{}), repo.UpdateIssue)
m.Post("/:index/label", repo.UpdateIssueLabel)
m.Post("/:index/milestone", repo.UpdateIssueMilestone)