forked from forgejo/forgejo
add http protocol clone support
This commit is contained in:
parent
5cb2d3d2e2
commit
efdaf6ee15
4 changed files with 40 additions and 4 deletions
2
web.go
2
web.go
|
@ -116,6 +116,8 @@ func runWeb(*cli.Context) {
|
|||
|
||||
m.Get("/:username/:reponame", ignSignIn, middleware.RepoAssignment(true), repo.Single)
|
||||
|
||||
m.Any("/:username/:reponame/**", ignSignIn, repo.Http)
|
||||
|
||||
if martini.Env == martini.Dev {
|
||||
m.Get("/template/**", dev.TemplatePreview)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue