Fix getApi base url

This commit is contained in:
Fred Boniface 2023-04-24 12:10:19 +01:00
parent 7a8ab8ad4c
commit 096a74b4bb
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ async function getQuery(param) {
async function getApi(path,auth = false) {
let apiVer = 'v1'
let url = `https://${window.location.origin}/api/${apiVer}/${path}`
let url = `${window.location.origin}/api/${apiVer}/${path}`
log(`getApi: Fetching from endpoint: ${url}, Auth=${auth}`)
try {
var resp = await fetch(url)