From b940d681c3f1c4bd6d0eafa94c18075ac0f50a3d Mon Sep 17 00:00:00 2001 From: Stavros Date: Fri, 10 Oct 2025 16:42:19 +0300 Subject: [PATCH] feat: use recovery gin middleware in engine --- internal/bootstrap/app_bootstrap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index d3dbfc2..a757a2e 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -173,6 +173,7 @@ func (app *BootstrapApp) Setup() error { // Create engine engine := gin.New() + engine.Use(gin.Recovery()) if len(app.config.TrustedProxies) > 0 { err := engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ","))