diff options
author | slene <vslene@gmail.com> | 2014-03-20 13:31:24 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-20 13:31:24 +0800 |
commit | 24678d73f59abd46141ef6fece7966e1f9c5c8f3 (patch) | |
tree | 703b9cf24bcd7af41be88ef4134c8d21e94bd1fc /web.go | |
parent | 805732fdc76c55659a3ee4b9d1a655ba3c9a0abc (diff) | |
download | gitea-24678d73f59abd46141ef6fece7966e1f9c5c8f3.tar.gz gitea-24678d73f59abd46141ef6fece7966e1f9c5c8f3.zip |
read single file
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |