summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorSteven Oud <soud@protonmail.com>2015-10-04 17:09:16 +0200
committerSteven Oud <soud@protonmail.com>2015-10-04 23:29:23 +0200
commit6fe868a4d512adf3d4cf652a777c0c16521fbe5c (patch)
treeadbcc68deb1056a23f40d049e4192c3248fbd579 /cmd/web.go
parent02d3b662654d1627ad510b7b330c016e97a7d1af (diff)
downloadgitea-6fe868a4d512adf3d4cf652a777c0c16521fbe5c.tar.gz
gitea-6fe868a4d512adf3d4cf652a777c0c16521fbe5c.zip
added repository remove option to api
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 ec0e4cd74f..0c0eea3f81 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -226,6 +226,7 @@ func runWeb(ctx *cli.Context) {
m.Group("", func() {
m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), v1.MigrateRepo)
+ m.Delete("/:owner/:reponame", v1.RemoveRepo)
}, middleware.ApiReqToken())
m.Group("/:username/:reponame", func() {