mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-13 20:15:56 +00:00
Increasing size of first letter, and setting up for ajax communication
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
var vitreumRender = require('vitreum/render');
|
||||
|
||||
|
||||
|
||||
module.exports = function(app){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
app.get('/homebrew/edit/:id', function(req, res){
|
||||
|
||||
console.log(req.params.id);
|
||||
|
||||
|
||||
vitreumRender({
|
||||
page: './build/homebrew/bundle.dot',
|
||||
globals:{},
|
||||
prerenderWith : './client/homebrew/homebrew.jsx',
|
||||
initialProps: {
|
||||
url: req.originalUrl,
|
||||
},
|
||||
clearRequireCache : true,
|
||||
}, function (err, page) {
|
||||
return res.send(page)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
app.get('/homebrew*', function (req, res) {
|
||||
vitreumRender({
|
||||
page: './build/homebrew/bundle.dot',
|
||||
globals:{},
|
||||
prerenderWith : './client/homebrew/homebrew.jsx',
|
||||
initialProps: {
|
||||
url: req.originalUrl,
|
||||
},
|
||||
clearRequireCache : true,
|
||||
}, function (err, page) {
|
||||
return res.send(page)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return app;
|
||||
}
|
||||
Reference in New Issue
Block a user