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

import { PolicyHandler } from './authorization/policy-handler.interface';

export const CHECK_POLICY_KEY = 'checkPolicies';

export const CheckPolicies = (...handlers: PolicyHandler[]) =>
  SetMetadata(CHECK_POLICY_KEY, handlers);
