added Recover to help with panics

This commit is contained in:
James Tombleson 2024-03-26 17:49:01 -07:00
parent 21c9067183
commit 13f5dba498

View File

@ -27,6 +27,7 @@ func main() {
}
e.Pre(middleware.RemoveTrailingSlash())
e.Pre(middleware.Logger())
e.Pre(middleware.Recover())
v1Group := e.Group("/api/v1")
v1Api := v1.NewHandler(db)