0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 19:04:17 +01:00
This commit is contained in:
Unknwon 2015-07-31 14:25:12 +08:00
parent c44e1c7ca9
commit 4cd892c99f

View file

@ -464,7 +464,11 @@ func runWeb(ctx *cli.Context) {
}, ignSignIn, middleware.RepoAssignment(true)) }, ignSignIn, middleware.RepoAssignment(true))
m.Group("/:username", func() { m.Group("/:username", func() {
m.Get("/:reponame", ignSignIn, middleware.RepoAssignment(true, true), middleware.RepoRef(), repo.Home) m.Group("/:reponame", func() {
m.Get("", repo.Home)
m.Get(".git", repo.Home)
}, ignSignIn, middleware.RepoAssignment(true, true), middleware.RepoRef())
m.Any("/:reponame/*", ignSignInAndCsrf, repo.Http) m.Any("/:reponame/*", ignSignInAndCsrf, repo.Http)
}) })