I’m stuck trying to pass this challenge
This is the code I’m using but can’t find why exactly it is failing.
app.route('/name').get((req, res) => {
var first = req.query.first;
var last = req.query.last;
var jsonObj = {'name': first + ' ' + last};
res.json(jsonObj);
}).post();
Maybe some of the other parts of the code are not allowing the code to be right?