Fix double slash in API paths

This commit is contained in:
Tulir Asokan 2018-11-11 00:58:08 +02:00
parent 3d88277fd2
commit 640caa2f2e

View File

@ -45,8 +45,8 @@ async function defaultPut(type, entry, id = undefined) {
return await resp.json()
}
async function defaultGet(url) {
const resp = await fetch(`${BASE_PATH}/${url}`, { headers: getHeaders() })
async function defaultGet(path) {
const resp = await fetch(`${BASE_PATH}${path}`, { headers: getHeaders() })
return await resp.json()
}