Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

req body express

var bodyParser = require('body-parser')
var app = express()

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #req #body #express
ADD COMMENT
Topic
Name
5+7 =