Page Contents

Home > @loopback/express > InvokeMiddlewareProvider > action

InvokeMiddlewareProvider.action() method

Signature:

action(middlewareCtx: MiddlewareContext, optionsOrHandlers?: InvokeMiddlewareOptions | ExpressRequestHandler[]): Promise<any>;

Parameters

Parameter Type Description
middlewareCtx MiddlewareContext  
optionsOrHandlers InvokeMiddlewareOptions | ExpressRequestHandler[]  

Returns:

Promise<any>