blob: 06c00c03ad8c446ee43f132fe114f9a282926924 [file] [log] [blame]
'use strict';
var express = require('express');
var pathlib = require('path');
var app = express();
function pathTo(path) {
return pathlib.join(__dirname, path);
}
app.use('/public', express.static(pathTo('public')));
app.use('/third_party', express.static(pathTo('third_party')));
app.get('*', function(req, res) {
res.sendFile(pathTo('index.html'));
});
var server = app.listen(4000, function() {
console.log('Serving http://localhost:%d', server.address().port);
});