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

    • Rest ...roleNames: string[]

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

    Returns ((classDefinition) => void)

      • (classDefinition): void
      • Parameters

        • classDefinition: Function

        Returns void

Generated using TypeDoc