mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-27 07:16:37 +00:00
BodyParser
This commit is contained in:
parent
106d656567
commit
862c113892
@ -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
|
||||||
|
}))`
|
Loading…
Reference in New Issue
Block a user