mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 02:09:05 +03:00
api def location
This commit is contained in:
parent
d482f0bf43
commit
adefcaec06
@ -121,4 +121,4 @@ async function useRequest(request) {
|
||||
return await JSON.parse(response.request.response);
|
||||
}
|
||||
|
||||
export const apiService = new ApiService('http://localhost:3000');
|
||||
export const apiService = new ApiService(document.defaultView.location.origin);
|
||||
@ -58,4 +58,4 @@ async function useRequest(request) {
|
||||
return await JSON.parse(response.request.response);
|
||||
}
|
||||
|
||||
export const apiService = new ApiService('http://localhost:3000');
|
||||
export const apiService = new ApiService(document.defaultView.location.origin);
|
||||
Loading…
x
Reference in New Issue
Block a user