UNPKG

@methodus/framework-decorators

Version:

Server Decorators for methodus

24 lines 854 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RouterConfiguration = void 0; require("reflect-metadata"); var framework_commons_1 = require("@methodus/framework-commons"); function RouterConfiguration(controller, serverType) { return function (target) { var original = target.prototype.constructor; original.prototype.options = original.prototype.options || { servers: [], classes: [], clients: [], plugins: [], }; original.prototype.options.classes.push({ classType: controller, controller: controller, methodType: framework_commons_1.MethodType.Local, serverType: serverType, }); }; } exports.RouterConfiguration = RouterConfiguration; //# sourceMappingURL=router.js.map