forked from forgejo/forgejo
single repository page ui
This commit is contained in:
parent
555c8f1d91
commit
b1fe498eb9
3 changed files with 66 additions and 46 deletions
4
web.go
4
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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue