Answers for "set bodyparser express"

1

bodyparser purpose

//body-parser helps parse json files
//you can use body-parser anytime you need to use a form to post
//data to a request
var bodyParser = require("body-parser"); 
app.use(bodyParser.urlencoded({extended: true}));
Posted by: Guest on July-12-2020
-1

app use body parser

// parse application/json
app.use(bodyParser.json())
Posted by: Guest on July-26-2020

Browse Popular Code Answers by Language