MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / updateAPI

Function updateAPI

web/src/helpers/api.js:45–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43patchAPIInstance(API);
44
45export function updateAPI() {
46 API = axios.create({
47 baseURL: import.meta.env.VITE_REACT_APP_SERVER_URL
48 ? import.meta.env.VITE_REACT_APP_SERVER_URL
49 : '',
50 headers: {
51 'New-API-User': getUserIdFromLocalStorage(),
52 'Cache-Control': 'no-store',
53 },
54 });
55
56 patchAPIInstance(API);
57}
58
59API.interceptors.response.use(
60 (response) => response,

Callers 6

sendCodeFunction · 0.90
onTelegramLoginClickedFunction · 0.90
handleSubmitFunction · 0.90
onTelegramLoginClickedFunction · 0.90

Calls 2

patchAPIInstanceFunction · 0.85

Tested by

no test coverage detected