Initial commit of nodejs
This commit is contained in:
11
controllers/bouncing/index.js
Normal file
11
controllers/bouncing/index.js
Normal 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);
|
||||
});
|
||||
}
|
||||
3
controllers/bouncing/urls.js
Normal file
3
controllers/bouncing/urls.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'/bouncing' : 'index'
|
||||
}
|
||||
Reference in New Issue
Block a user