summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-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) {