Fix getApi base url
This commit is contained in:
parent
7a8ab8ad4c
commit
096a74b4bb
@ -128,7 +128,7 @@ async function getQuery(param) {
|
|||||||
|
|
||||||
async function getApi(path,auth = false) {
|
async function getApi(path,auth = false) {
|
||||||
let apiVer = 'v1'
|
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}`)
|
log(`getApi: Fetching from endpoint: ${url}, Auth=${auth}`)
|
||||||
try {
|
try {
|
||||||
var resp = await fetch(url)
|
var resp = await fetch(url)
|
||||||
|
Reference in New Issue
Block a user