From b5fdf0947b80a9eae4a399faa78a349e394e77c0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 22 Oct 2015 17:47:08 -0400 Subject: [PATCH] reduce code --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index 45a5ff2f..23976535 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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).