@lomray/microservice-gateway
Version:
Gateway microservice based on NodeJS & inverted json.
10 lines (9 loc) • 352 B
TypeScript
import { RequestHandler, Request } from 'express-serve-static-core';
interface IUserInfoParams {
handleUserInfo?: (userInfo: Record<string, any> | undefined, req: Request) => void;
}
/**
* Collect and attach user info to headers
*/
declare const userInfo: ({ handleUserInfo }?: IUserInfoParams) => RequestHandler;
export { userInfo as default };