fetches keys correctly on the front-end

This commit is contained in:
kevmodrome 2020-07-02 17:55:36 +02:00
parent aabde78c47
commit 03980182d2
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
1 changed files with 2 additions and 4 deletions

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>