So I have the following code in my server.js file that I\'m running with node.js. I\'m using express to handle HTTP requests.
app.post(\'/api/destinations\',
For me the back end was configured properly the issue was valid JSON format including double quotes on the variables.
this did not work
const res = await axios.post(serverPath + "/user/login", {
email: email,
password: password,
});
This DID work (with double quotes around email and password
const res = await axios.post(serverPath + "/user/login", {
"email": email,
"password": password,
});