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