Initial commit of nodejs
This commit is contained in:
10
index/index.js
Normal file
10
index/index.js
Normal 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);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user