This commit is contained in:
Lunny Xiao 2014-03-13 12:45:41 +08:00
parent 555c8f1d91
commit fecafdca2a
5 changed files with 17 additions and 31 deletions

2
web.go
View file

@ -70,8 +70,6 @@ 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)