Skip to content

Interface: ResolvedBasePath

API / @xmachines/play-router / index / ResolvedBasePath

Defined in: packages/play-url/src/base-path.ts:82

A base path that is ready for a use in both directions.

Properties

PropertyModifierTypeDescriptionDefined in
paramsreadonlyRecord<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.packages/play-url/src/base-path.ts:93
pathreadonlystringThe normalized prefix: it starts with /, it carries no trailing /, and it holds no duplicate slash. The empty string means “no prefix”.packages/play-url/src/base-path.ts:87