Page Contents
Home > @loopback/express > InvokeMiddlewareOptions
InvokeMiddlewareOptions interface
Options for InvokeMiddleware
Signature:
export interface InvokeMiddlewareOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
chain? | string | (Optional) Name of the extension point. Default to the extensionPoint tag value from the binding |
|
middlewareList? | MiddlewareOrKey[] | (Optional) 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) Optional next handler | |
orderedGroups? | string[] | (Optional) An array of group names to denote the order of execution, such as ['cors', 'caching', 'rate-limiting'] . |
|
validate? | (groups: string[]) => void | (Optional) An optional function to validate the sorted groups before invoking the middleware chain |