package middleware import "net/http" // AdminAuthMiddleware is goctl middleware name AdminAuth (after AuthJWT). type AdminAuthMiddleware struct{} func NewAdminAuthMiddleware() *AdminAuthMiddleware { return &AdminAuthMiddleware{} } func (m *AdminAuthMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc { return AdminMiddleware(next) }