diff options
author | Unknwon <u@gogs.io> | 2015-08-09 15:23:02 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-09 15:23:02 +0800 |
commit | 590c464c56c993c461f10470926a96448f4f7d00 (patch) | |
tree | e79642dd169eecc9757e1aa76f4e68568a6b9f46 /cmd | |
parent | 43a87b0caf50abe6d6b19adf10dd9f082c58ad61 (diff) | |
download | gitea-590c464c56c993c461f10470926a96448f4f7d00.tar.gz gitea-590c464c56c993c461f10470926a96448f4f7d00.zip |
UI: create issue with title and content
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
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) |