Skip to content

Instantly share code, notes, and snippets.

@taterbase
Created September 17, 2013 20:29
Show Gist options
  • Save taterbase/6600136 to your computer and use it in GitHub Desktop.
Save taterbase/6600136 to your computer and use it in GitHub Desktop.
var express = require('express')
, app = express()
app.get('*', function(req, res, next) {
res.sendfile(req.url.replace(/^\//, ''))
})
app.listen(1337);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment