diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-13 11:56:25 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-13 11:56:25 +0800 |
commit | 08feaf3deda4c82579375779cb27a403c4e1d79a (patch) | |
tree | 7dcd1d9f123591da3cedfd29542778cf25c2f798 /web.go | |
parent | a9a5fb45f8b0b31f0219d7a0957db1a43a72f6e0 (diff) |
add repo router
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |