summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-22 00:48:26 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-22 00:48:26 +0800
commitefdaf6ee1536f043d9e242dc16a096c99ec1bfda (patch)
treec2aac787780b7a8e1925e0b4536ae735f7d3680b /web.go
parent5cb2d3d2e233def07d6956af47dfc49acc45c7e6 (diff)
downloadgitea-efdaf6ee1536f043d9e242dc16a096c99ec1bfda.tar.gz
gitea-efdaf6ee1536f043d9e242dc16a096c99ec1bfda.zip
add http protocol clone support
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index ceb193e6fd..f083b5508c 100644
--- a/web.go
+++ b/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)
}