diff --git a/backend/src/router.js b/backend/src/router.js index 1136bb1..e836542 100644 --- a/backend/src/router.js +++ b/backend/src/router.js @@ -67,6 +67,7 @@ router.post( // Import ingredientControllers module for handling item-related operations const IngredientControllers = require("./controllers/ingredientControllers"); +router.get("/ingredients", IngredientControllers.browse); // Route to get a list of items router.get("/ingredient/:id", IngredientControllers.read); // Route to get a specific item by ID router.get("/ingredientbyrecipe/:id", IngredientControllers.readByRecipe); // Route to get ingredients for a specific Recipe @@ -77,6 +78,7 @@ router.get("/ingredientbyrecipe/:id", IngredientControllers.readByRecipe); // Ro // Import materialControllers module for handling item-related operations const MaterialControllers = require("./controllers/materialControllers"); +router.get("/materials", MaterialControllers.browse); // Route to get a list of items router.get("/material/:id", MaterialControllers.read); // Route to get a specific item by ID router.get("/materialByRecipe/:id", MaterialControllers.readByRecipe); // Route to get materials for a specific Recipe