1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

fetches keys correctly on the front-end

This commit is contained in:
kevmodrome 2020-07-02 17:55:36 +02:00
parent d8e6bd0ab9
commit b6f3a1e32d

View file

@ -17,12 +17,10 @@
async function fetchKeys() {
const response = await api.get(`/api/keys/`)
const res = await response.json()
console.log("Res: ", res)
// fetch keys from endpoint
// return keys
keys = res
}
let fetchKeysPromise = fetchKeys()
fetchKeys()
</script>
<Title>API Keys</Title>