Tell us what’s happening:
test always fails, my solution:
const express = require(“express”);
const bodyParser = require(“body-parser”);
const app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.post(“/name”, (req, res) => {
res.json({
name: ${req.body.first} ${req.body.last}
});
});
module.exports = app;
###Your project link(s)
solution: http://localhost:3000
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Challenge Information:
Basic Node and Express - Get Data from POST Requests