Home / File/ post.js — express Source File

post.js — express Source File

Architecture documentation for post.js, a javascript file in the express codebase.

Entity Profile

Relationship Graph

Source Code

'use strict'

// Fake posts database

var posts = [
  { title: 'Foo', body: 'some foo bar' },
  { title: 'Foo bar', body: 'more foo bar' },
  { title: 'Foo bar baz', body: 'more foo bar baz' }
];

exports.list = function(req, res){
  res.render('posts', { title: 'Posts', posts: posts });
};

Domain

Subdomains

Functions

Frequently Asked Questions

What does post.js do?
post.js is a source file in the express codebase, written in javascript. It belongs to the ExpressCore domain, PrototypalExtension subdomain.
What functions are defined in post.js?
post.js defines 1 function(s): exports.
Where is post.js in the architecture?
post.js is located at examples/route-separation/post.js (domain: ExpressCore, subdomain: PrototypalExtension, directory: examples/route-separation).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free