UNPKG

@methodus/server

Version:
16 lines 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ServerContainer { constructor(serverInformation, parentServer) { if (serverInformation.type.path) { this.server = require(serverInformation.type.path); } else { this.server = serverInformation.type; } this.server.register(serverInformation, parentServer); return this.server; } } exports.ServerContainer = ServerContainer; //# sourceMappingURL=server-container.js.map