the instructions say
We have prepared a form in the html frontpage. It will submit the same data of exercise 10 (Query string)
where is this form? its not located on:
https://happy-scorpion.glitch.me/index.html
nor is it located on:
https://happy-scorpion.glitch.me/views/index.html
and the root directory just displays the ‘hello express’ string from the previous exercise
so where did the form disappear?
also why is my code not passing?
app.get('/name', function(req,res){
let first= req.query.first;
let last= req.query.last;
res.send({ name: `${first} ${last}`});
}).post((req, res) => {
let first= req.body.first;
let last= req.body.last;
res.json({ name: `${first} ${last}`});
});