Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Feb 16, 2024
1 parent 1964b36 commit cbee817
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
20 changes: 0 additions & 20 deletions public/runtime-config-example.json

This file was deleted.

2 changes: 0 additions & 2 deletions src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ class ApiClient {
});
}

// todo add getter for this.config?
public updateBaseUrl(newBaseUrl?: string, updatedConfig?: AxiosRequestConfig) {
this.config = updatedConfig ||
{...apiConfig, baseURL: newBaseUrl} ||
{...apiConfig, baseURL: globalConfig.get().backendUrl};
this.api = axios.create(this.config);
console.log('API CONFIG', this.config)
}

public registerInterceptors(unauthorizedCallback: CB, serverErrorCallback: CB, pluginErrorCallback: CB) {
Expand Down

0 comments on commit cbee817

Please sign in to comment.