chore: remove unused CORSMiddleware wrapper

This commit is contained in:
2026-06-11 11:11:43 +02:00
parent 827b77cb20
commit 7f98fbfa7a
2 changed files with 12 additions and 4 deletions

View File

@@ -8,10 +8,6 @@ import (
"github.com/gin-gonic/gin"
)
func CORSMiddleware() gin.HandlerFunc {
return CORSMiddlewareWithConfig(config.Config{})
}
func CORSMiddlewareWithConfig(cfg config.Config) gin.HandlerFunc {
allowAll := cfg.CORSAllowAll
return func(c *gin.Context) {