fetches keys correctly on the front-end
This commit is contained in:
parent
aabde78c47
commit
03980182d2
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue