@lomray/microservice-gateway
Version:
Gateway microservice based on NodeJS & inverted json.
19 lines (18 loc) • 876 B
TypeScript
/// <reference types="cors" />
/// <reference types="express-serve-static-core" />
/// <reference types="qs" />
import { IGatewayOptions, IGatewayParams } from '@lomray/microservice-nodejs-lib';
/**
* Microservice options
*/
declare const msOptions: Partial<IGatewayOptions>;
declare const msMiddlewares: (((options?: import("cors").CorsOptions) => Promise<(req: import("cors").CorsRequest, res: {
statusCode?: number | undefined;
setHeader(key: string, value: string): any;
end(): any;
}, next: (err?: any) => any) => void>) | (({ handleUserInfo }?: IUserInfoParams) => import("express-serve-static-core").RequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>))[];
/**
* Microservice params
*/
declare const msParams: Partial<IGatewayParams>;
export { msOptions, msParams, msMiddlewares };