mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 14:01:35 +00:00
BodyParser
This commit is contained in:
@@ -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