From e1dba9ed1e7d5fefeae43c045dd4b05ce83ace1d Mon Sep 17 00:00:00 2001 From: Robbie Ginsburg Date: Wed, 8 May 2024 15:50:14 -0400 Subject: [PATCH] Fix CodeQL Issues --- 4-AccessControl/1-app-roles/App/routes/todolistRoutes.js | 2 +- 4-AccessControl/2-security-groups/App/routes/todolistRoutes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4-AccessControl/1-app-roles/App/routes/todolistRoutes.js b/4-AccessControl/1-app-roles/App/routes/todolistRoutes.js index f414e39..d302ed9 100644 --- a/4-AccessControl/1-app-roles/App/routes/todolistRoutes.js +++ b/4-AccessControl/1-app-roles/App/routes/todolistRoutes.js @@ -5,7 +5,7 @@ const todolistController = require('../controllers/todolistController'); const router = express.Router(); // user routes -router.get('', todolistController.getTodos); +router.get('/', todolistController.getTodos); router.post('/', todolistController.postTodo); module.exports = router; \ No newline at end of file diff --git a/4-AccessControl/2-security-groups/App/routes/todolistRoutes.js b/4-AccessControl/2-security-groups/App/routes/todolistRoutes.js index f414e39..d302ed9 100644 --- a/4-AccessControl/2-security-groups/App/routes/todolistRoutes.js +++ b/4-AccessControl/2-security-groups/App/routes/todolistRoutes.js @@ -5,7 +5,7 @@ const todolistController = require('../controllers/todolistController'); const router = express.Router(); // user routes -router.get('', todolistController.getTodos); +router.get('/', todolistController.getTodos); router.post('/', todolistController.postTodo); module.exports = router; \ No newline at end of file