Skip to content

Instantly share code, notes, and snippets.

@jdx
Last active August 29, 2015 14:01
Show Gist options
  • Save jdx/72019e04ded499e0d566 to your computer and use it in GitHub Desktop.
Save jdx/72019e04ded499e0d566 to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
var PORT = 3000;
app.use(function(req, res, next) {
console.log('pid:', process.pid, 'received', req.path);
next();
});
app.get('/', function(req, res) {
res.send(200, 'hello world!');
});
app.listen(PORT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment