single repository page ui preview

This commit is contained in:
FuXiaoHei 2014-03-13 12:15:58 +08:00
parent 3c67318d8f
commit 4fff38856e
6 changed files with 220 additions and 1 deletions

1
web.go
View file

@ -73,6 +73,7 @@ func runWeb(*cli.Context) {
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)
listenAddr := fmt.Sprintf("%s:%s",
base.Cfg.MustValue("server", "HTTP_ADDR"),