Add errHandler mid ware
This commit is contained in:
parent
47edf7f4f9
commit
56cf05be77
3 changed files with 37 additions and 5 deletions
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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue