moleculer-api
Version:
A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.
20 lines • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerApplicationComponent = void 0;
const tslib_1 = require("tslib");
const kleur = tslib_1.__importStar(require("kleur"));
const interface_1 = require("../../../interface");
class ServerApplicationComponent extends interface_1.HasStaticKey {
constructor(props, opts) {
super();
this.props = props;
}
toString() {
return kleur.yellow(`${this.key}<${this.Route.name}>`);
}
canHandleRoute(route) {
return route instanceof this.Route;
}
}
exports.ServerApplicationComponent = ServerApplicationComponent;
//# sourceMappingURL=component.js.map