From 96a0edac8bd9f801c68b7c93b78d448a7847aa9c Mon Sep 17 00:00:00 2001 From: orca-zhang Date: Thu, 27 Jun 2024 14:54:37 +0800 Subject: [PATCH] feat: add recover middleware (#37) --- route/routers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/routers.go b/route/routers.go index 6765982..18f0b7a 100644 --- a/route/routers.go +++ b/route/routers.go @@ -34,7 +34,7 @@ func NewAPIRouter(swagger *openapi3.T, services *service.Services) (http.Handler }))) e.Use(echo_middleware.Gzip()) - + e.Use(echo_middleware.Recover()) e.Use(echo_middleware.Logger()) e.Use(echo_middleware.JWTWithConfig(echo_middleware.JWTConfig{