0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-12 08:52:39 +00:00

Getting splatsheet rolling

This commit is contained in:
Scott Tolksdorf
2016-03-31 22:03:34 -04:00
parent 6f4d71083c
commit 312167d96b
17 changed files with 396 additions and 41 deletions

27
server/splatsheet.api.js Normal file
View File

@@ -0,0 +1,27 @@
var _ = require('lodash');
var Moment = require('moment');
var vitreumRender = require('vitreum/render');
module.exports = function(app){
app.get('/splatsheet', function(req, res){
vitreumRender({
page: './build/splatsheet/bundle.dot',
globals:{},
prerenderWith : './client/splatsheet/splatsheet.jsx',
initialProps: {
url: req.originalUrl,
},
clearRequireCache : true,
}, function (err, page) {
return res.send(page)
});
});
return app;
}