Optional route authentication function. See RouteAuthenticator for further details. If no authenticator is given, all matched routes will always succeed, regardless if a rule's auth
flag is enabled or not.
Fallback route ID (MUST exist in routes
), used if none of the defined routes could be matched against user input, e.g. a home or error page.
Optional initial route to trigger when router starts. If given, this MUST be a route without params.
Route prefix. Default: /
. All routes to be parsed by BasicRouter.route are assumed to have this prefix. All routes returned by {@link (BasicRouter.format:1)} will include this prefix.
An array of route specs, which are being attempted to be matched in order of appearance.
Optional route path component separator. Default: /
Generated using TypeDoc
Configuration object for BasicRouter and HTMLRouter instances.