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

@@ -3,14 +3,26 @@ version: "2"
linters:
default: none
enable:
- bodyclose
- copyloopvar
- cyclop
- dupl
- errcheck
- funlen
- gocognit
- gocyclo
- govet
- ineffassign
- maintidx
- nakedret
- nilerr
- noctx
- revive
- staticcheck
- unconvert
- unparam
- unused
- wastedassign
settings:
revive:
enable-all-rules: false

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) {