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/web.go | |
parent | 35a65736fa1361d1d0fb83217f95d7aa8ca71336 (diff) |
reduce code
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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). |