merch-api/pkg/router/middleware.go
2026-03-04 16:59:00 +03:00

14 lines
303 B
Go

package router
import (
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
)
func authMW() gin.HandlerFunc {
log.Debug("Auth Middleware enabled")
return func(c *gin.Context) {
c.Set("userUuid", "019caeab-aa81-7f09-a220-d7e675300638") //TODO placeholder for dev purposes
c.Next()
}
}