diff options
author | slene <vslene@gmail.com> | 2014-03-24 23:56:32 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-24 23:56:32 +0800 |
commit | ff362484191d08db2e2bda238934b780139b9048 (patch) | |
tree | 691a564e36ed971c7eb1f28b8c69fb74a7f9ffe4 /web.go | |
parent | 92a6058e29eb5f9cd655c3b1f8f43fd6d46fe5a4 (diff) | |
download | gitea-ff362484191d08db2e2bda238934b780139b9048.tar.gz gitea-ff362484191d08db2e2bda238934b780139b9048.zip |
raw download
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -152,6 +152,7 @@ func runWeb(*cli.Context) { r.Get("/branches", repo.Branches) r.Get("/src/:branchname", repo.Single) r.Get("/src/:branchname/**", repo.Single) + r.Get("/raw/:branchname/**", repo.SingleDownload) r.Get("/commits/:branchname", repo.Commits) r.Get("/commits/:branchname", repo.Commits) }, ignSignIn, middleware.RepoAssignment(true)) @@ -162,6 +163,7 @@ func runWeb(*cli.Context) { m.Group("/:username", func(r martini.Router) { r.Get("/:reponame", middleware.RepoAssignment(true), repo.Single) + r.Get("/:reponame", middleware.RepoAssignment(true), repo.Single) r.Any("/:reponame/**", repo.Http) }, ignSignIn) |