fn
joinURL
v0.0.1Joins a base URL with a relative path, normalising the slash boundary
Signature
ts
export function joinURL(base: string, path: string): string{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
base | string | Base URL (e.g. "https://api.example.com/v1") |
path | string | Relative path (e.g. "/users") |
Returns
stringJoined URL