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