UNPKG

tspace-spear

Version:

tspace-spear is a lightweight API framework for Node.js that is fast and highly focused on providing the best developer experience. It utilizes the native HTTP server

18 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Swagger = void 0; const Swagger = (data) => { return (target, propertyKey) => { const controller = target.constructor; const swaggers = Reflect.hasMetadata("swaggers", controller) ? Reflect.getMetadata("swaggers", controller) : []; swaggers.push({ handler: propertyKey, ...data }); Reflect.defineMetadata("swaggers", swaggers, controller); }; }; exports.Swagger = Swagger; //# sourceMappingURL=swagger.js.map