aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-13 11:56:25 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-13 11:56:25 +0800
commit08feaf3deda4c82579375779cb27a403c4e1d79a (patch)
tree7dcd1d9f123591da3cedfd29542778cf25c2f798 /web.go
parenta9a5fb45f8b0b31f0219d7a0957db1a43a72f6e0 (diff)
add repo router
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index c7c704c1..0b41a909 100644
--- a/web.go
+++ b/web.go
@@ -70,6 +70,8 @@ func runWeb(*cli.Context) {
m.Get("/user/:username", auth.SignInRequire(false), user.Profile)
+ 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)