(origin: string, path: string)
| 77 | |
| 78 | // The real server serves everything (incl. healthz + ws) under the /api/v1 prefix. |
| 79 | export function buildRestUrl(origin: string, path: string): string { |
| 80 | return `${origin}/api/v1${path.startsWith('/') ? path : `/${path}`}`; |
| 81 | } |
| 82 | |
| 83 | export function buildWsUrl(origin: string, clientId: string): string { |
| 84 | const url = new URL(`${origin}/api/v1/ws`); |
no outgoing calls
no test coverage detected