forked from gitea/gitea
1
0
Fork 0

reduce code

This commit is contained in:
Unknwon 2015-10-22 17:47:08 -04:00
parent 35a65736fa
commit b5fdf0947b
1 changed files with 2 additions and 2 deletions

View File

@ -228,8 +228,8 @@ func runWeb(ctx *cli.Context) {
m.Group("/repos", func() {
m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), v1.MigrateRepo)
m.Combo("/:username/:reponame").Get(v1.GetRepo)
m.Delete("/:username/:reponame", v1.DeleteRepo)
m.Combo("/:username/:reponame").Get(v1.GetRepo).
Delete(v1.DeleteRepo)
m.Group("/:username/:reponame", func() {
m.Combo("/hooks").Get(v1.ListRepoHooks).