ui-router-server / redirects / RouteIndex
Type Alias: RouteIndex
ts
type RouteIndex = (routes) => (pathname) => RouteMatch | null;Defined in: redirects.ts:284
Compiles a mount's routes into the lookup its 'matcher' strategy runs: a pathname in, the matchRoute result over those routes out. It may throw at compile for routes it can't serve. The default scans the routes in order; `routeTrie` walks a segment trie.
Parameters
| Parameter | Type |
|---|---|
routes | CompiledRoute[] |
Returns
(pathname) => RouteMatch | null