[NodeJS] How to access $_PARAM in front-end?

[NodeJS] How to access $_PARAM in front-end?

I have a route like /edit/:id

I'm currently defining a variable with the $_PARAM server-side rendered, but I don't know if this is the most correct way:

<dmx-value id="paramID" dmx-bind:value="<%=_('$_PARAM.id',locals)%>"></dmx-value>

Is there an automatically defined variable that contains $_PARAM.id?