pis #1
@ -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