Skip to content
Myr

post.js

This file

Path

examples/route-separation/post.js

13 lines · 292 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 2027b87 point at it.

fix(deps): cookie@0.7.0Josh Bukerbefore adoption2027b87

lines 1–13why, one step back
1'use strict'
23// Fake posts database45var posts = [6 { title: 'Foo', body: 'some foo bar' },7 { title: 'Foo bar', body: 'more foo bar' },8 { title: 'Foo bar baz', body: 'more foo bar baz' }9];1011exports.list = function(req, res){12 res.render('posts', { title: 'Posts', posts: posts });13};