summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-18 11:22:19 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-18 11:22:19 +0800
commit3ceb008e1f50b89a2e0fda8fac939df92642219c (patch)
tree8df540f4da19a7e9bcb6bf8e79c6597935f9f587 /web.go
parente656609b0d7780103fbed4472a6d6bef9a6d64d0 (diff)
downloadgitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.tar.gz
gitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.zip
add commit view
Diffstat (limited to 'web.go')
-rw-r--r--web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web.go b/web.go
index 2177d5662f..ca504ea560 100644
--- a/web.go
+++ b/web.go
@@ -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",