@nestjs/swagger
Version:
Nest - modern, fast, powerful node.js web framework (@swagger)
9 lines (8 loc) • 383 B
JavaScript
import { DECORATORS } from '../constants.js';
export const exploreGlobalApiSecurityMetadata = (metatype) => {
const security = Reflect.getMetadata(DECORATORS.API_SECURITY, metatype);
return security ? { security } : undefined;
};
export const exploreApiSecurityMetadata = (instance, prototype, method) => {
return Reflect.getMetadata(DECORATORS.API_SECURITY, method);
};