summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-12 17:47:23 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-12 17:47:23 -0400
commite07674bff19dcc321a1611a3598d69c418ac8642 (patch)
tree824174b3dea4490f00c713778688bff59d35d98f /cmd
parentfb0972afadbd87ae707861acc0986bde01528c3c (diff)
downloadgitea-e07674bff19dcc321a1611a3598d69c418ac8642.tar.gz
gitea-e07674bff19dcc321a1611a3598d69c418ac8642.zip
Support edit release and save as draft
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 2b14b0778e..27b3d8cf92 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -228,11 +228,13 @@ func runWeb(*cli.Context) {
})
r.Post("/comment/:action", repo.Comment)
- r.Get("/releases/new", repo.ReleasesNew)
+ r.Get("/releases/new", repo.NewRelease)
+ r.Get("/releases/edit/:tagname", repo.EditRelease)
}, reqSignIn, middleware.RepoAssignment(true))
m.Group("/:username/:reponame", func(r martini.Router) {
- r.Post("/releases/new", bindIgnErr(auth.NewReleaseForm{}), repo.ReleasesNewPost)
+ r.Post("/releases/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost)
+ r.Post("/releases/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost)
}, reqSignIn, middleware.RepoAssignment(true, true))
m.Group("/:username/:reponame", func(r martini.Router) {