MiddlewareDeclaration
Overview
MiddlewareDeclaration<PathPatternPrefix>: readonly [`PathPatternPrefix`, [`Fetcher<any>`](../interfaces/Fetcher.mdx)]
Type parameters
Name | Type | Description |
---|---|---|
PathPatternPrefix | extends string = string | A path prefix defining where the middleware should be mounted. Combines with the given router's routes. |
Defined in
router/types/MiddlewareDeclaration.ts:23
Middleware declaration in the convenient shape of
Map
's constructor parameters.