mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-30 16:34:11 -07:00
BodyParser
This commit is contained in:
1 parent
106d656567
commit
862c113892
1 file changed
+7
@@ -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
|
||||||
|
}))`
|
||||||
Reference in new issue
Block a user