mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-28 15:54:07 -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')`
|
||||
|
||||
```BodyParser```
|
||||
|
||||
`const BodyParser = require('body-parser')
|
||||
app.use(BodyParser.json())
|
||||
app.use(BodyParser.urlencoded({
|
||||
extended: true
|
||||
}))`
|
||||
Reference in new issue
Block a user