summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
committerUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
commitca8ce793d15b3991eb4766939e9a0a7cf086fa6f (patch)
tree9460c1e8b16d59d31834a4cda12f821a5372f112 /cmd
parent978dc00305f1af705ae8900977529bac6fa4c72b (diff)
downloadgitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.tar.gz
gitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.zip
#2063 Ability to delete repo from admin panel
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 0fb57bbd9d..2ed31e1fab 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -267,7 +267,8 @@ func runWeb(ctx *cli.Context) {
})
m.Group("/repos", func() {
- m.Get("", admin.Repositories)
+ m.Get("", admin.Repos)
+ m.Post("/delete", admin.DeleteRepo)
})
m.Group("/auths", func() {