Interface: ResolvedBasePath
API / @xmachines/play-router / ResolvedBasePath
Defined in: play-router/src/base-path.ts:78
A base path that is ready for a use in both directions.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
params | readonly | Record<string, string> | The values of each :param of the prefix, for the params of a play.route event. The object is empty for a prefix without a param, and for a pattern that nothing resolved. | play-router/src/base-path.ts:89 |
path | readonly | string | The normalized prefix: it starts with /, it carries no trailing /, and it holds no duplicate slash. The empty string means “no prefix”. | play-router/src/base-path.ts:83 |