post.js
This file
Path
examples/route-separation/post.js
11 lines · 278 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6bc7574 point at it.
docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 1–11why, one step back1// Fake posts database23var posts = [4 { title: 'Foo', body: 'some foo bar' },5 { title: 'Foo bar', body: 'more foo bar' },6 { title: 'Foo bar baz', body: 'more foo bar baz' }7];89exports.list = function(req, res){10 res.render('posts', { title: 'Posts', posts: posts });11};