mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-25 11:07:56 +08:00
Add errHandler mid ware
This commit is contained in:
1
web.go
1
web.go
@ -50,6 +50,7 @@ func runWeb(*cli.Context) {
|
||||
// Middlewares.
|
||||
m.Use(render.Renderer(render.Options{Funcs: []template.FuncMap{AppHelpers}}))
|
||||
m.Use(base.InitContext())
|
||||
m.Use(log.ErrHandle())
|
||||
|
||||
// TODO: should use other store because cookie store is not secure.
|
||||
store := sessions.NewCookieStore([]byte("secret123"))
|
||||
|
Reference in New Issue
Block a user