Function Roles

  • Custom NestJS metadata decorator for assigning roles to a route handler or controller.

    Parameters

    • Rest ...roles: string[]

      An array of role strings to assign to the route handler or controller.

    Returns CustomDecorator<string>

    • A custom decorator function that sets the metadata key 'roles' with the provided roles.

    Function

Generated using TypeDoc