summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-24 11:58:58 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-24 11:58:58 -0400
commitd2ceb001d0373b0ab3aab76a53497afb6b56650a (patch)
treec6ab391c1fbe64072b6b977a5fcf4f5dc1117484 /web.go
parent6337d3bf193491aeb9f6a03b260e7c7089c59f76 (diff)
parentff362484191d08db2e2bda238934b780139b9048 (diff)
downloadgitea-d2ceb001d0373b0ab3aab76a53497afb6b56650a.tar.gz
gitea-d2ceb001d0373b0ab3aab76a53497afb6b56650a.zip
Merge branch 'master' of github.com:gogits/gogs
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 70da899a79..0747f224b7 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)