Skip to content

Commit e6f5acf

Browse files
author
codingChewie
committed
The Request Object
1 parent 06a74f7 commit e6f5acf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const eyes = require('eyespect')
33

44
const app = express()
55

6+
app.use(express.urlencoded({ extended: false }))
7+
68
app.set('view engine', 'pug')
79

810
app.get('/', (req, res) => res.render('index'))
@@ -20,6 +22,7 @@ app.get('/hello', (req, res) => {
2022
})
2123

2224
app.post('/hello', (req, res) => {
25+
console.log(req.body)
2326
res.render('hello')
2427
})
2528

0 commit comments

Comments
 (0)