From 1b355c6e98efdbd0819683e6776906e26fa8c740 Mon Sep 17 00:00:00 2001 From: L4168 <L4168@student.jamk.fi> Date: Thu, 4 Jul 2019 11:00:49 +0300 Subject: [PATCH] filename roles.* -> guard.* --- src/shared/{roles.decorator.ts => guard.decorator.ts} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename src/shared/{roles.decorator.ts => guard.decorator.ts} (53%) diff --git a/src/shared/roles.decorator.ts b/src/shared/guard.decorator.ts similarity index 53% rename from src/shared/roles.decorator.ts rename to src/shared/guard.decorator.ts index 0d14223..b299d6d 100644 --- a/src/shared/roles.decorator.ts +++ b/src/shared/guard.decorator.ts @@ -1,3 +1,6 @@ import { SetMetadata } from '@nestjs/common'; -export const Roles = (...roles: string[]) => SetMetadata('roles', roles); \ No newline at end of file +export const Roles = (...roles: string[]) => SetMetadata('roles', roles); + +export const GameStates = (...states: string[]) => + SetMetadata('states', states); -- GitLab