DEV Community

Discussion on: Writing Async/Await Middleware in Express

Collapse
 
nax3t profile image
Ian Schoonover

Great article! Thanks :)

I noticed you have: req.render('post', { title, body });
shouldn't it be: res.render('post', { title, body }); ?

Collapse
 
geoff profile image
Geoff Davis

Good catch! I'll update my snippets