routes.js 768 B

12345678910111213141516
  1. const home = require("./controllers/home");
  2. module.exports = function(app){
  3. app.get("/", home.displayInventory);
  4. app.get("/merchant/new", home.merchantSetup);
  5. app.get("/getrecipes", home.getRecipes);
  6. app.post("/merchant/create", home.createMerchant);
  7. app.post("/merchant/update", home.updateMerchant);
  8. app.post("/ingredients/create", home.createNewIngredients);
  9. app.post("/ingredients/update", home.updateIngredient);
  10. app.post("/ingredients/remove", home.removeIngredient);
  11. app.post("/ingredients/createone", home.createIngredient);
  12. app.get("/recipes", home.displayRecipes);
  13. app.post("/recipes/ingredients/remove", home.deleteRecipeIngredient);
  14. // app.post("/recipes/ingredients/update", home.updateRecipeIngredient);
  15. }