diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-22 00:48:26 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-22 00:48:26 +0800 |
commit | efdaf6ee1536f043d9e242dc16a096c99ec1bfda (patch) | |
tree | c2aac787780b7a8e1925e0b4536ae735f7d3680b /web.go | |
parent | 5cb2d3d2e233def07d6956af47dfc49acc45c7e6 (diff) | |
download | gitea-efdaf6ee1536f043d9e242dc16a096c99ec1bfda.tar.gz gitea-efdaf6ee1536f043d9e242dc16a096c99ec1bfda.zip |
add http protocol clone support
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) } |