I hereby claim:
- I am mkeemon on github.
- I am mkeemon (https://keybase.io/mkeemon) on keybase.
- I have a public key ASDUse0abqsAELcOFUKAxv7QeX_7BSanBWypvbevIy3lywo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
var connect = require('connect'); | |
var rewrite = require('connect-modrewrite'); | |
var path = require('path'); | |
var http = require('http'); | |
var public_dir = path.join(__dirname, 'public'); | |
var app = connect() | |
.use(rewrite(['^([^.]+)$ /index.html'])) | |
.use(connect.static(public_dir)); |