LocChat/server/decorators/skip.decorator.ts

6 lines
226 B
TypeScript
Raw Permalink Normal View History

2021-12-01 22:18:26 -05:00
import { CanActivate, SetMetadata } from '@nestjs/common';
import { Class } from 'server/dto/class.dto';
export const SKIP_KEY = 'skip';
export const Skip = (...guards: Class<CanActivate>[]) => SetMetadata(SKIP_KEY, guards);