Merge branch 'master' of github.com:gogits/gogs
This commit is contained in:
commit
91a1b55707
2 changed files with 10 additions and 0 deletions
3
web.go
3
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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue