fetches keys correctly on the front-end
This commit is contained in:
parent
d8e6bd0ab9
commit
b6f3a1e32d
|
@ -17,12 +17,10 @@
|
||||||
async function fetchKeys() {
|
async function fetchKeys() {
|
||||||
const response = await api.get(`/api/keys/`)
|
const response = await api.get(`/api/keys/`)
|
||||||
const res = await response.json()
|
const res = await response.json()
|
||||||
console.log("Res: ", res)
|
keys = res
|
||||||
// fetch keys from endpoint
|
|
||||||
// return keys
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let fetchKeysPromise = fetchKeys()
|
fetchKeys()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Title>API Keys</Title>
|
<Title>API Keys</Title>
|
||||||
|
|
Loading…
Reference in New Issue