diff options
author | Unknwon <u@gogs.io> | 2015-10-22 17:47:08 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-22 17:47:08 -0400 |
commit | b5fdf0947b80a9eae4a399faa78a349e394e77c0 (patch) | |
tree | 53c629131e1e1fdec6b4f7d0a280e94632068d04 /cmd | |
parent | 35a65736fa1361d1d0fb83217f95d7aa8ca71336 (diff) | |
download | gitea-b5fdf0947b80a9eae4a399faa78a349e394e77c0.tar.gz gitea-b5fdf0947b80a9eae4a399faa78a349e394e77c0.zip |
reduce code
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 45a5ff2fa9..2397653534 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). |