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