Skip to content

parseRoute

1
function parseRoute(path: string): string

Parses a route to ensure it starts with a forward slash.

Parameters

ParameterTypeDescription
pathstringThe path to parse.

Returns

string

The parsed path.

Source

twitchfy/packages/eventsub/src/webhook/util/parseRoute.ts:6