feat: use recovery gin middleware in engine

This commit is contained in:
Stavros
2025-10-10 16:42:19 +03:00
parent a1ec4a69cf
commit b940d681c3

View File

@@ -173,6 +173,7 @@ func (app *BootstrapApp) Setup() error {
// Create engine // Create engine
engine := gin.New() engine := gin.New()
engine.Use(gin.Recovery())
if len(app.config.TrustedProxies) > 0 { if len(app.config.TrustedProxies) > 0 {
err := engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ",")) err := engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ","))