aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-24 21:27:19 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-24 21:27:19 +0800
commit5e22f1437ac2466d599c242fd5e256180fa7b68e (patch)
treee3c4330ff3a48b792e4e8169f312b87e07fceb4e /web.go
parent137538e54b3aade46cf2ef947707f4e32ba8a382 (diff)
downloadgitea-5e22f1437ac2466d599c242fd5e256180fa7b68e.tar.gz
gitea-5e22f1437ac2466d599c242fd5e256180fa7b68e.zip
diff page ui
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 9a613dceb6..be9378f18c 100644
--- a/web.go
+++ b/web.go
@@ -156,8 +156,8 @@ func runWeb(*cli.Context) {
}, ignSignIn, middleware.RepoAssignment(true))
// TODO: implement single commit page
- // m.Get("/:username/:reponame/commit/:commitid/**", 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.Diff)
+ m.Get("/:username/:reponame/commit/:commitid", ignSignIn, middleware.RepoAssignment(true), repo.Diff)
m.Group("/:username", func(r martini.Router) {
r.Get("/:reponame", middleware.RepoAssignment(true), repo.Single)