Function Permissions

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

    Parameters

    • Rest ...permissions: string[]

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

    Returns CustomDecorator<string>

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

    Function

Generated using TypeDoc