UNPKG

699 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.exploreApiSecurityMetadata = exports.exploreGlobalApiSecurityMetadata = void 0;
4const constants_1 = require("../constants");
5const exploreGlobalApiSecurityMetadata = (metatype) => {
6 const security = Reflect.getMetadata(constants_1.DECORATORS.API_SECURITY, metatype);
7 return security ? { security } : undefined;
8};
9exports.exploreGlobalApiSecurityMetadata = exploreGlobalApiSecurityMetadata;
10const exploreApiSecurityMetadata = (instance, prototype, method) => {
11 return Reflect.getMetadata(constants_1.DECORATORS.API_SECURITY, method);
12};
13exports.exploreApiSecurityMetadata = exploreApiSecurityMetadata;