diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-18 11:22:19 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-18 11:22:19 +0800 |
commit | 3ceb008e1f50b89a2e0fda8fac939df92642219c (patch) | |
tree | 8df540f4da19a7e9bcb6bf8e79c6597935f9f587 /web.go | |
parent | e656609b0d7780103fbed4472a6d6bef9a6d64d0 (diff) | |
download | gitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.tar.gz gitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.zip |
add commit view
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -82,6 +82,9 @@ func runWeb(*cli.Context) { middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) m.Get("/:username/:reponame/tree/:branchname", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) + m.Get("/:username/:reponame/commit/:commitid/**", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) + m.Get("/:username/:reponame/commit/:commitid", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) + m.Get("/:username/:reponame", middleware.SignInRequire(false), middleware.RepoAssignment(true), repo.Single) listenAddr := fmt.Sprintf("%s:%s", |