You're right.
The recommended way is to call the methods directly on the express object.
Because...
In the latest version of Express, some bodyParser's methods have been added natively. That's why you don't have to install or require bodyParser again.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice post ππ...
I tend to use Express: app.use(express.json())
app.use(bodyparser.json()) outputs depreciation warnings here...just my preference though
Yes you are right from now i will also use the same thanks for pointing it out π€
You're right.
The recommended way is to call the methods directly on the express object.
Because...
In the latest version of Express, some bodyParser's methods have been added natively. That's why you don't have to install or require bodyParser again.