1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-23 13:17:48 +00:00

BodyParser

This commit is contained in:
Zoheb Alli Khan 2021-06-04 11:51:15 +05:30
parent 106d656567
commit 862c113892

View File

@ -215,3 +215,10 @@ res.sendFile(file, options, function(err){
`res.render('index')` `res.render('index')`
```BodyParser```
`const BodyParser = require('body-parser')
app.use(BodyParser.json())
app.use(BodyParser.urlencoded({
extended: true
}))`