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

10
index/index.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = function(app, urls) {
app.get(urls.index, function(req, res) {
res.setHeader('Content-Type', 'text/html');
views.render('index', res.locals, function(err, result) {
console.log(err);
res.send(result);
});
});
}