middleware is not included by default in the newer versions of the express..use following approach
npm i --save body-parser
var bodyParser = require('body-parser')
const app = express()
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: true }))
// parse application/json
app.use(bodyParser.json())