Page Contents

Home > @loopback/express > InvokeMiddlewareOptions

InvokeMiddlewareOptions interface

Options for InvokeMiddleware


export interface InvokeMiddlewareOptions 


Property Type Description
chain string Name of the extension point. Default to the extensionPoint tag value from the binding
middlewareList MiddlewareOrKey[] Pre-built middleware list. If set, the list will be used to create the middleware chain without discovering again within the context.
next Next Optional next handler
orderedGroups string[] An array of group names to denote the order of execution, such as ['cors', 'caching', 'rate-limiting'].
validate (groups: string[]) => void An optional function to validate the sorted groups before invoking the middleware chain