UNPKG

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.

19 lines (18 loc) 885 B
import { ServerHTTPApplication, ServerHTTPApplicationOptions } from "./http/component"; import { ServerWebSocketApplication, ServerWebSocketApplicationOptions } from "./ws/component"; export { ServerApplicationComponent } from "./component"; export * from "./route"; export * from "./http/route"; export * from "./ws/route"; export declare type ServerApplicationComponentConstructorOptions = { [ServerHTTPApplication.key]: ServerHTTPApplicationOptions; [ServerWebSocketApplication.key]: ServerWebSocketApplicationOptions; }; export declare const ServerApplicationComponentConstructors: { http: typeof ServerHTTPApplication; ws: typeof ServerWebSocketApplication; }; export declare type ServerApplicationComponentModules = { [ServerHTTPApplication.key]: ServerHTTPApplication["module"]; [ServerWebSocketApplication.key]: ServerWebSocketApplication["module"]; };