diff --git a/server/index.js b/server/index.js index 77d452e..044502f 100644 --- a/server/index.js +++ b/server/index.js @@ -57,8 +57,12 @@ function objectIdFromDate(date) { function dateFromObjectId(objectId) { return Math.floor(mongo.ObjectId(objectId).getTimestamp().getTime() / 1000) -}; +} app.use(express.static(path.join(__dirname, '../dist'))) +app.get('/*', function(req, res) { + res.sendFile(path.join(__dirname, '../dist/index.html')) +}) + module.exports = app