added repository remove option to api

This commit is contained in:
Steven Oud 2015-10-04 17:09:16 +02:00
parent 02d3b66265
commit 6fe868a4d5
2 changed files with 37 additions and 0 deletions

View file

@ -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() {