Skip to content

Instantly share code, notes, and snippets.

View jennyknuth's full-sized avatar

Jenny Knuth jennyknuth

View GitHub Profile
var http = require('http'),
fs = require('fs'),
mime = require('mime'),
colors = require('colors');
// This server is compliant with the demands of HTML5 pushstate URLs.
// See "The Reload Problem" http://www.angularonrails.com/get-html5-pushstate-working-angular-rails/
// The above article is for rails apps, but the same problem / solution apply here.