pis #2
@ -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)
|
||||
|
Reference in New Issue
Block a user