9 lines
266 B
TypeScript
9 lines
266 B
TypeScript
|
import { SetMetadata } from '@nestjs/common';
|
||
|
|
||
|
/**
|
||
|
* Restrict this route to only these privileges. AND logic!
|
||
|
* @param privileges List of privileges for this route
|
||
|
*/
|
||
|
export const Privileges = (...privileges: string[]) =>
|
||
|
SetMetadata('privileges', privileges);
|