aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-13 12:50:07 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-13 12:50:07 +0800
commitb1fe498eb975d112b06814253f9b9e8dc561d91f (patch)
treef3a84ac499c3d75054c72652c9a97caed94d99ed /web.go
parent555c8f1d919eae951bf7f75f4bc6a150ec04b9a6 (diff)
single repository 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 c8b7ed0d..9f9b205a 100644
--- a/web.go
+++ b/web.go
@@ -70,12 +70,12 @@ func runWeb(*cli.Context) {
m.Get("/user/:username", auth.SignInRequire(false), user.Profile)
- m.Get("/:username/:reponame", repo.Repo)
+ //m.Get("/:username/:reponame", repo.Repo)
m.Any("/repo/create", auth.SignInRequire(true), binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create)
m.Any("/repo/delete", auth.SignInRequire(true), repo.Delete)
m.Any("/repo/list", auth.SignInRequire(false), repo.List)
- m.Get("/:username/:reponame", auth.SignInRequire(false), repo.Single)
+ m.Get("/:username/:reponame", auth.SignInRequire(false), auth.RepoAssignment(true), repo.Single)
listenAddr := fmt.Sprintf("%s:%s",
base.Cfg.MustValue("server", "HTTP_ADDR"),