summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-10-08 20:01:56 -0400
committer无闻 <u@gogs.io>2015-10-08 20:01:56 -0400
commitb1941f1da18b8c6ca046771c21f21ba793765518 (patch)
tree77edc0b7a5223b5cd6a8c8d1cda35a7aca6f9c7b /cmd
parent19c3745488413aa2dc26d54d6781212dc23985ab (diff)
parent6fe868a4d512adf3d4cf652a777c0c16521fbe5c (diff)
downloadgitea-b1941f1da18b8c6ca046771c21f21ba793765518.tar.gz
gitea-b1941f1da18b8c6ca046771c21f21ba793765518.zip
Merge pull request #1736 from soudy/develop
Added repository remove option to API
Diffstat (limited to 'cmd')
-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() {