Last active
August 29, 2015 14:01
-
-
Save jdx/72019e04ded499e0d566 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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