(baseUrl: string)
| 1 | export const DAEMON_HTTP_BASE_PATH = '/agent-device'; |
| 2 | |
| 3 | export function buildDaemonHttpBaseUrl(baseUrl: string): string { |
| 4 | return buildDaemonHttpUrl(baseUrl, DAEMON_HTTP_BASE_PATH); |
| 5 | } |
| 6 | |
| 7 | export function buildDaemonHttpUrl(baseUrl: string, route: string): string { |
| 8 | const normalizedBase = baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`; |
no test coverage detected