@beholdio/ts-lambda-api - v2.4.8
    Preparing search index...

    Function controllerRolesAllowed

    • Decorator for a controller class that defines roles that are allowed to user all endpoints within it.

      Role based authorization is managed by a IAuthorizer implementation registered with the current app.

      Parameters

      • ...roleNames: string[]

        Names of roles that are permitted to use the endpoints in this controller.

      Returns (classDefinition: Function) => void