Skip to content

Instantly share code, notes, and snippets.

View framlin's full-sized avatar

Wolfgang Egger framlin

View GitHub Profile
@framlin
framlin / index.js
Created April 6, 2012 09:26 — forked from timoxley/index.js
flatiron ip address middleware
var union = require('union');
var flatiron = require('flatiron');
var ecstatic = require('ecstatic');
app = new flatiron.App();
app.use(flatiron.plugins.http);
app.http.before = [
function (req, res) {