blob: 1117234bed5a59e2987e42ba66b213eb7595cdd7 [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('public/index.html'));
});
var server = app.listen(4000, function() {
console.log('Serving http://localhost:%d', server.address().port);
});