import { SetMetadata } from '@nestjs/common';
import { UserRole } from '../enums';
import { ROLES_KEY } from '../guards/roles.guard';

export const Roles = (...roles: (UserRole | string)[]): ReturnType<typeof SetMetadata> =>
  SetMetadata(ROLES_KEY, roles);
