Added app prefix for URL

This commit is contained in:
Donald Zou
2024-08-14 01:17:47 -04:00
parent 3a34a0eb40
commit a30843cff9
4 changed files with 69 additions and 55 deletions

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@ const getUrl = (url) => {
if (apiKey){
return `${apiKey.host}${url}`
}
return url
return `//${window.location.host}${window.location.pathname}${url}`
}
export const fetchGet = async (url, params=undefined, callback=undefined) => {