summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
commit35d473f04ac79990a35499fbf3c4998170e655e1 (patch)
treefca64b6679336766ffc6965f3f09974c9d3da348 /web.go
parentc6e12d256833095d76bbb5755261507ecbdaada9 (diff)
downloadgitea-35d473f04ac79990a35499fbf3c4998170e655e1.tar.gz
gitea-35d473f04ac79990a35499fbf3c4998170e655e1.zip
Finish verify email
Diffstat (limited to 'web.go')
-rw-r--r--web.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/web.go b/web.go
index fe3596e220..2cf3ba0932 100644
--- a/web.go
+++ b/web.go
@@ -21,6 +21,7 @@ import (
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/routers"
+ "github.com/gogits/gogs/routers/dev"
"github.com/gogits/gogs/routers/repo"
"github.com/gogits/gogs/routers/user"
)
@@ -113,6 +114,10 @@ func runWeb(*cli.Context) {
m.Get("/:username/:reponame", ignSignIn, middleware.RepoAssignment(true), repo.Single)
+ if martini.Env == martini.Dev {
+ m.Get("/template/**", dev.TemplatePreview)
+ }
+
listenAddr := fmt.Sprintf("%s:%s",
base.Cfg.MustValue("server", "HTTP_ADDR"),
base.Cfg.MustValue("server", "HTTP_PORT", "3000"))