Intitial project structure with express.js
This commit is contained in:
6
src/routes/index.js
Normal file
6
src/routes/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
// GET / - primary app dashboard
|
||||
exports.getIndex = function(req, res) {
|
||||
|
||||
res.render('index/dashboard', { title: 'Hey', message: 'Hello there!' });
|
||||
|
||||
};
|
Reference in New Issue
Block a user