@methodus/server
Version:
Server components for @methodus workflow
16 lines • 530 B
JavaScript
;
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