aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-20 13:31:24 +0800
committerslene <vslene@gmail.com>2014-03-20 13:31:24 +0800
commit24678d73f59abd46141ef6fece7966e1f9c5c8f3 (patch)
tree703b9cf24bcd7af41be88ef4134c8d21e94bd1fc /web.go
parent805732fdc76c55659a3ee4b9d1a655ba3c9a0abc (diff)
downloadgitea-24678d73f59abd46141ef6fece7966e1f9c5c8f3.tar.gz
gitea-24678d73f59abd46141ef6fece7966e1f9c5c8f3.zip
read single file
Diffstat (limited to 'web.go')
-rw-r--r--web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web.go b/web.go
index f793518a18..ceb193e6fd 100644
--- a/web.go
+++ b/web.go
@@ -107,9 +107,9 @@ func runWeb(*cli.Context) {
m.Get("/:username/:reponame/pulls", ignSignIn, middleware.RepoAssignment(true), repo.Pulls)
m.Get("/:username/:reponame/branches", ignSignIn, middleware.RepoAssignment(true), repo.Branches)
m.Get("/:username/:reponame/action/:action", reqSignIn, middleware.RepoAssignment(true), repo.Action)
- m.Get("/:username/:reponame/tree/:branchname/**",
+ m.Get("/:username/:reponame/src/:branchname/**",
ignSignIn, middleware.RepoAssignment(true), repo.Single)
- m.Get("/:username/:reponame/tree/:branchname",
+ m.Get("/:username/:reponame/src/:branchname",
ignSignIn, middleware.RepoAssignment(true), repo.Single)
m.Get("/:username/:reponame/commit/:commitid/**", ignSignIn, middleware.RepoAssignment(true), repo.Single)
m.Get("/:username/:reponame/commit/:commitid", ignSignIn, middleware.RepoAssignment(true), repo.Single)