LocChat/server/decorators/skip.decorator.ts
Joseph Ditton 84b45cd6b1 adds roles
2021-12-01 20:18:26 -07:00

6 lines
226 B
TypeScript

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);