parseRoute
Parses a route to ensure it starts with a forward slash.
Parameters
Parameter | Type | Description |
---|---|---|
path | string | The path to parse. |
Returns
string
The parsed path.
Parses a route to ensure it starts with a forward slash.
Parameter | Type | Description |
---|---|---|
path | string | The path to parse. |
string
The parsed path.