summer-glove
Version:
[](https://www.npmjs.com/package/summer-glove) ## Fit like a glove 🧤 Summer-glove is a route manager, providing a quick and easy way to configure an express application. Summer-glo
14 lines (13 loc) • 656 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const SwaggerInformationCore_1 = __importDefault(require("../../../application/core/SwaggerInformationCore"));
function ParamPath(paramPath) {
return (target, propertyKey, descriptor) => {
const endpoint = descriptor.value.endpoint;
SwaggerInformationCore_1.default.getInstance().getObjectConfig().mappedApi[target.constructor.name][endpoint]["paramPath"] = paramPath;
};
}
exports.default = ParamPath;