parseRoute
1function parseRoute(path: string): string
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.
1function parseRoute(path: string): string
Parses a route to ensure it starts with a forward slash.
Parameter | Type | Description |
---|---|---|
path | string | The path to parse. |
string
The parsed path.