service/library/middleware/recover.go

13 lines
190 B
Go

package middleware
import (
"github.com/gin-gonic/gin"
"service/library/logger"
)
func RecoverMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
defer logger.Recover()
}
}