added Recover to help with panics
This commit is contained in:
parent
21c9067183
commit
13f5dba498
1
main.go
1
main.go
@ -27,6 +27,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
e.Pre(middleware.RemoveTrailingSlash())
|
e.Pre(middleware.RemoveTrailingSlash())
|
||||||
e.Pre(middleware.Logger())
|
e.Pre(middleware.Logger())
|
||||||
|
e.Pre(middleware.Recover())
|
||||||
|
|
||||||
v1Group := e.Group("/api/v1")
|
v1Group := e.Group("/api/v1")
|
||||||
v1Api := v1.NewHandler(db)
|
v1Api := v1.NewHandler(db)
|
||||||
|
Loading…
Reference in New Issue
Block a user