fetch fix
This commit is contained in:
parent
79a3ab85da
commit
69b9aed30f
@ -12,9 +12,8 @@
|
|||||||
document.getElementById("result").innerHTML = "Info"
|
document.getElementById("result").innerHTML = "Info"
|
||||||
data = await resp.json()
|
data = await resp.json()
|
||||||
|
|
||||||
resp_db = await fetch('https://gp1q182wu2.execute-api.us-east-1.amazonaws.com/read', {method: "GET", body: ""})
|
fetch('https://gp1q182wu2.execute-api.us-east-1.amazonaws.com/read', {method: "GET"})
|
||||||
var result = JSON.stringify(resp_db)
|
.then((res) => {console.log(res);document.getElementById("test").innerHTML = JSON.stringify(res)})
|
||||||
document.getElementById("result").innerHTML = result
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>Invoice parser</title>
|
<title>Invoice parser</title>
|
||||||
|
Loading…
Reference in New Issue
Block a user