Created
January 7, 2014 01:11
-
-
Save brianleroux/8293026 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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