0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 15:12:43 +00:00

Creating the initial frameowkr for a new tool

This commit is contained in:
Scott Tolksdorf
2016-05-14 18:17:04 -04:00
parent 5f55a59042
commit 92e110ba15
8 changed files with 99 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
var _ = require('lodash');
var vitreumRender = require('vitreum/render');
module.exports = function(app){
app.get('/spellsort*', (req, res)=>{
vitreumRender({
page: './build/spellsort/bundle.dot',
globals:{},
prerenderWith : './client/spellsort/spellsort.jsx',
initialProps: {
url: req.originalUrl,
},
clearRequireCache : !process.env.PRODUCTION,
}, function (err, page) {
return res.send(page)
});
});
return app;
};