mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-23 05:12:13 +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')`
|
||||
|
||||
```BodyParser```
|
||||
|
||||
`const BodyParser = require('body-parser')
|
||||
app.use(BodyParser.json())
|
||||
app.use(BodyParser.urlencoded({
|
||||
extended: true
|
||||
}))`
|
Loading…
Reference in New Issue
Block a user