@deprecated 'bodyParser' is deprecated. code example
Example 1: 'bodyParser' is deprecated.
const express = require('express');
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
Example 2: 'bodyParser' is deprecated.
app.use(bodyParser.urlencoded());
app.use(bodyParser.json());