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.

12 lines (11 loc) 482 B
import { Pluggable } from "../../interface"; import { Logger } from "../../logger"; import { ServerApplicationComponentModules } from "../application/component"; export declare type ServerMiddlewareProps = { logger: Logger; }; export declare abstract class ServerMiddleware extends Pluggable { protected readonly props: ServerMiddlewareProps; constructor(props: ServerMiddlewareProps, opts?: any); abstract apply(modules: ServerApplicationComponentModules): void; }