Fix double slash in API paths
This commit is contained in:
parent
3d88277fd2
commit
640caa2f2e
@ -45,8 +45,8 @@ async function defaultPut(type, entry, id = undefined) {
|
|||||||
return await resp.json()
|
return await resp.json()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function defaultGet(url) {
|
async function defaultGet(path) {
|
||||||
const resp = await fetch(`${BASE_PATH}/${url}`, { headers: getHeaders() })
|
const resp = await fetch(`${BASE_PATH}${path}`, { headers: getHeaders() })
|
||||||
return await resp.json()
|
return await resp.json()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user