MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / resetApiClientEndpoint

Function resetApiClientEndpoint

webapp/_webapp/src/libs/apiclient.ts:295–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293export const getEndpointFromLocalStorage = getEndpointFromStorage;
294
295export const resetApiClientEndpoint = () => {
296 storage.removeItem(LOCAL_STORAGE_KEY_V1);
297 storage.removeItem(LOCAL_STORAGE_KEY_V2);
298 apiclient.updateBaseURL(getEndpointFromStorage(), "v1");
299 apiclientV2.updateBaseURL(getEndpointFromStorage(), "v2");
300};
301
302/**
303 * Reinitialize API client endpoints from storage.

Callers 2

UserDeveloperToolsFunction · 0.90
AdvancedSettingsFunction · 0.90

Calls 3

getEndpointFromStorageFunction · 0.85
updateBaseURLMethod · 0.80
removeItemMethod · 0.65

Tested by

no test coverage detected