diff options
Diffstat (limited to 'admportal/routes')
-rw-r--r-- | admportal/routes/index.js | 9 | ||||
-rw-r--r-- | admportal/routes/users.js | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/admportal/routes/index.js b/admportal/routes/index.js new file mode 100644 index 00000000..896c9482 --- /dev/null +++ b/admportal/routes/index.js @@ -0,0 +1,9 @@ +var express = require('express'); +var router = express.Router(); + +/* GET home page. */ +router.get('/', function(req, res) { + res.render('index', { title: 'Express' }); +}); + +module.exports = router; diff --git a/admportal/routes/users.js b/admportal/routes/users.js new file mode 100644 index 00000000..c00d7de1 --- /dev/null +++ b/admportal/routes/users.js @@ -0,0 +1,9 @@ +var express = require('express'); +var router = express.Router(); + +/* GET users listing. */ +router.get('/', function(req, res) { + res.send('respond with a resource'); +}); + +module.exports = router; |