Basic Node and Express - Use body-parser to Parse POST Requests

hi famillies please i need your help //

let bodyParser= require(“body-parser”);
let express = require(‘express’);
let app = express();

app.use(function middle(req, res, next){
bodyParser.urlencoded({extended: false}).extended=false
next();
});
app.use(bodyParser.json());

they tell The ‘body-parser’ middleware should be mounted

see the link

https://replit.com/@bowak/boilerplate-express-13#myApp.js

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.