Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created January 7, 2014 01:11
Show Gist options
  • Save brianleroux/8293026 to your computer and use it in GitHub Desktop.
Save brianleroux/8293026 to your computer and use it in GitHub Desktop.
var connect = require('connect')
var static = connect.static(__dirname + '/public')
var middleware = function(req, res, next) { next() }
var port = 9999
var cb = function() { console.log('Started server localhost:9999') }
connect()
.use(static)
.use(middleware)
.listen(port, cb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment