aboutsummaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-23 15:21:56 +0800
committerslene <vslene@gmail.com>2014-03-23 15:21:56 +0800
commit91a1b55707fe959c675fee0c0769a1be0106be3a (patch)
treed0aad3aaab69b6547d06b8058a10697b76ed19e4 /web.go
parent1c01db4019abc2460ac1743f9675c9effd211e3f (diff)
parentbdd32f152d73f31beffa854fb7382072043ef235 (diff)
downloadgitea-91a1b55707fe959c675fee0c0769a1be0106be3a.tar.gz
gitea-91a1b55707fe959c675fee0c0769a1be0106be3a.zip
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r--web.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web.go b/web.go
index 0d31161854..7b36ccd9db 100644
--- a/web.go
+++ b/web.go
@@ -163,6 +163,9 @@ func runWeb(*cli.Context) {
m.Get("/template/**", dev.TemplatePreview)
}
+ // not found handler
+ m.NotFound(routers.NotFound)
+
listenAddr := fmt.Sprintf("%s:%s",
base.Cfg.MustValue("server", "HTTP_ADDR"),
base.Cfg.MustValue("server", "HTTP_PORT", "3000"))