merch-api/pkg/router/middleware.go

15 lines
303 B
Go
Raw Normal View History

2026-02-23 19:33:21 +03:00
package router
2026-03-02 17:31:15 +03:00
2026-03-04 16:59:00 +03:00
import (
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
)
2026-03-02 17:31:15 +03:00
func authMW() gin.HandlerFunc {
2026-03-04 16:59:00 +03:00
log.Debug("Auth Middleware enabled")
2026-03-02 17:31:15 +03:00
return func(c *gin.Context) {
c.Set("userUuid", "019caeab-aa81-7f09-a220-d7e675300638") //TODO placeholder for dev purposes
c.Next()
}
}