MCPcopy
hub / github.com/CapSoftware/Cap / apiUrl

Function apiUrl

apps/chrome-extension/src/shared/api.ts:43–44  ·  view source on GitHub ↗
(settings: ExtensionSettings, path: string)

Source from the content-addressed store, hash-verified

41const extensionApiPath = (path: string) => `${EXTENSION_API_PREFIX}${path}`;
42
43const apiUrl = (settings: ExtensionSettings, path: string) =>
44 new URL(path, settings.apiBaseUrl).toString();
45
46const checkAuthStartRoute = async (
47 settings: ExtensionSettings,

Callers 2

requestJsonFunction · 0.85
createAuthStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected