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