import { SetMetadata } from "@nestjs/common";

export const ROLES_KEY = "roles";

// TODO: integrate @edr/auth — pair this metadata with a RolesGuard from the
// auth package. Until then, this decorator only sets metadata and has no
// runtime effect.
export const Roles = (...roles: string[]) => SetMetadata(ROLES_KEY, roles);
