express-mongoose-es6-rest-api
express-mongoose-es6-rest-api copied to clipboard
bodyParser: unable to obtain form-data from post request.
I can't obtain form-data of a post request.
req.body is empty or undefined.
I see in express.js
app.use(bodyParser.urlencoded({ extended: true }));
It seems to be ok but I don't know. I tried to make the same request in a clean express js rest api and it worked correctly.
The Content-type is application/json