Tell us what’s happening:
have to extract the query parameters and send a formatted json.
can’t figure out where is the mistake happening
my code :
app.post(“/name”, (req, res) => {
res.json({ name : ${req.query.first} ${req.query.last}
});
})
Your project link(s)
solution: boilerplate-express - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.77
Challenge: Basic Node and Express - Get Query Parameter Input from the Client
Link to the challenge: