()
| 293 | export const getEndpointFromLocalStorage = getEndpointFromStorage; |
| 294 | |
| 295 | export 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. |
no test coverage detected