summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-20 02:38:41 -0500
committerUnknwon <u@gogs.io>2015-11-20 02:38:41 -0500
commit987dcc5372998adaafb68e00a9a460e955d018e5 (patch)
tree6f88db3bee30cab2339244c124e6c82324a597a1 /cmd/web.go
parent9b6c835715ab27aa7a008a51415f38ca2a856cd0 (diff)
downloadgitea-987dcc5372998adaafb68e00a9a460e955d018e5.tar.gz
gitea-987dcc5372998adaafb68e00a9a460e955d018e5.zip
fix #1383
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index a5a7db5ffe..0ca9f4f537 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -514,6 +514,7 @@ func runWeb(ctx *cli.Context) {
m.Post("/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost)
m.Get("/edit/:tagname", repo.EditRelease)
m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost)
+ m.Post("/delete", repo.DeleteRelease)
}, reqRepoAdmin, middleware.RepoRef())
m.Combo("/compare/*").Get(repo.CompareAndPullRequest).