15 lines
347 B
Go
15 lines
347 B
Go
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)
|
|
}
|