
/api/access → server sẽ trả json → response.json() chuyển JSON thành object → console.log() in ra consolefunction getAccess() { fetch('/api/access') .then(function(response){ return response.json(); }) .then(function(data){ console.log(data); }); }

this_is_not_real

{
"sins": [
"lust",
"gluttony",
"greed",
"sloth",
"wrath",
"envy",
"pride"
],
"errors": [
"error",
"error",
"error",
"error",
"error",
"error",
"error",
"error",
"error"
],
"deaths": [
"death"
]
}
POST
