Skip to content

Interface: RouteNode

API / @xmachines/play-router / RouteNode

Defined in: types.ts:79

Node in the route tree representing a single route

Properties

PropertyTypeDescriptionDefined in
childrenRouteNode[]Child routestypes.ts:103
fullPathstringThe fully resolved absolute path from the root (e.g. "/dashboard/overview"). Always use fullPath for browser URL matching and route map construction. createRouteMapFromTree and createRouteMap both use this field.types.ts:92
idstringUnique identifier (state ID)types.ts:81
metadataRouteMetadataOriginal meta.route metadatatypes.ts:107
parentRouteNode | nullParent route (null for root)types.ts:105
pathstringThe raw route path segment as declared in meta.route — may be relative (e.g. "overview") or absolute (e.g. "/dashboard"). Do not use this for URL matching; use fullPath instead.types.ts:86
pattern?stringRoute pattern with parameters (e.g., /profile/:userId) if path contains paramstypes.ts:94
routablebooleanWhether this state is routable (has meta.route) States with meta.route can receive play.route eventstypes.ts:101
stateIdstringXState state ID this route maps totypes.ts:96