Receiving an axios.post() request in app.js
This is my axios.post() sending my form's input.value to the server
In my app.js, when I set up the route to receive this axios.post() request, I destructure
In the console though, I get undefined.
HOWEVER, when I have
Whether or not this
character cut-off: My question will be in the first comment
In my app.js, when I set up the route to receive this axios.post() request, I destructure
req.body into a name variable, and then attempt to console.log(name).In the console though, I get undefined.
HOWEVER, when I have
app.use(express.json()); in my app.js, I do see the 'name' value consoled. Whether or not this
app.use(express.json()); is included in my app.js though, I will see this name reflected in the "payload" tab and the res.status(201).send()/res.status(401).send() logic result in the devtools network "preview" tab. character cut-off: My question will be in the first comment
