Returns a new resource factory where all endpoints inherit the given authorization requirements.
authorize(principalSchema, ...roles)
authorize(...roles)
Returns a new resource factory where all endpoints inherit the given authorization requirements.
authorize(principalSchema, ...roles)— typed principalauthorize(...roles)— untyped principal