Initial commit of nodejs

This commit is contained in:
Thomas FORGIONE
2015-05-05 11:56:35 +02:00
parent 4cc35587ef
commit afe1d124ed
35 changed files with 336 additions and 138 deletions

View File

@@ -0,0 +1,11 @@
var pejs = require('pejs');
views = pejs();
module.exports.index = function(req, res) {
res.setHeader('Content-Type', 'text/html');
views.render('bouncing', res.locals, function(err, result) {
console.log(err);
res.send(result);
});
}

View File

@@ -0,0 +1,3 @@
module.exports = {
'/bouncing' : 'index'
}