feature: Set up Express Generator skeleton

This commit is contained in:
Keith Solomon
2025-05-22 18:16:11 -05:00
parent d1f4fe7112
commit 5e327b9b59
10 changed files with 849 additions and 474 deletions

9
routes/index.js Normal file
View File

@@ -0,0 +1,9 @@
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express', title2: 'Hi Aarish!', message: 'Welcome to the world of Express.js!' });
});
module.exports = router;

9
routes/users.js Normal file
View File

@@ -0,0 +1,9 @@
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
});
module.exports = router;