summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-24 23:56:32 +0800
committerslene <vslene@gmail.com>2014-03-24 23:56:32 +0800
commitff362484191d08db2e2bda238934b780139b9048 (patch)
tree691a564e36ed971c7eb1f28b8c69fb74a7f9ffe4 /web.go
parent92a6058e29eb5f9cd655c3b1f8f43fd6d46fe5a4 (diff)
downloadgitea-ff362484191d08db2e2bda238934b780139b9048.tar.gz
gitea-ff362484191d08db2e2bda238934b780139b9048.zip
raw download
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index 9717c9384a..e4c8eb5536 100644
--- a/web.go
+++ b/web.go
@@ -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)