aboutsummaryrefslogtreecommitdiff
path: root/interface/routes/index.js
diff options
context:
space:
mode:
authorjmreddy2106 <[email protected]>2022-05-03 18:29:31 -0400
committerjmreddy2106 <[email protected]>2022-05-03 18:29:31 -0400
commitb861c79f03429313d05ff0a8105b7715aec0ef4d (patch)
treeb0dcfa8cbf2cc5ce3fda7af854c1ce84ff053cf2 /interface/routes/index.js
parentf807467dca2f08060b0bd4aa6b30ed231bb383b7 (diff)
downloadWelfare-Schemes-DMQL-b861c79f03429313d05ff0a8105b7715aec0ef4d.tar.xz
Welfare-Schemes-DMQL-b861c79f03429313d05ff0a8105b7715aec0ef4d.zip
added geography controls
Diffstat (limited to 'interface/routes/index.js')
-rw-r--r--interface/routes/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/interface/routes/index.js b/interface/routes/index.js
index cdab54d..b99abbf 100644
--- a/interface/routes/index.js
+++ b/interface/routes/index.js
@@ -3,10 +3,12 @@ const router = express.Router();
const citizensController = require("../controllers/citizens.controller");
const api = require('./api');
const citizensAPI = require('./api/citizens');
+const geographyAPI = require('./api/geography');
// Setup api routes
router.use('/api', api);
router.use('/api/citizens', citizensAPI);
+router.use('/api/geography', geographyAPI);
router.get('/', (req, res) => {
@@ -29,5 +31,14 @@ router.get("/citizens", (req, res) => {
});
});
+
+router.get("/addUser", (req, res) => {
+ res.render("addUser", {
+ title: "Add User"
+ });
+ }
+);
+
+
// export the router
module.exports = router;