https://stackabuse.com/get-http-post-body-in-express-js/
https://stackoverflow.com/questions/5710358/how-to-access-post-form-fields
http://localhost:3000/api/get?q={%22username%22:%22xgqfrms%22}
fetch(`http://localhost:3000/api/post`, {
body: JSON.stringify({key: "value"}),
cache: "no-cache",
headers: {
"Content-Type": "application/json",
},
method: "POST",
mode: "cors",
})
.then(res => {
console.log(`res =`, res)
return res.json()
})
// .then(res => res.json())
.then(json => console.log(`json =`, json))
.catch(err => console.error(`error =`, err));
http://127.0.0.1:3000/api/get?q={%22username%22:%22xgqfrms%22,%22member_since%22:%222012-10-21T05:26:39.239Z%22,%22total_score%22:182160,%22avatar%22:%22https://secure.gravatar.com/avatar/e7b8d8946d71e52d2670e0def364997a.jpg%22}