routes.js 833 B

1234567891011121314151617
  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.getCloverRecipes);
  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/createone", home.createIngredient);
  10. app.get("/recipes", home.displayRecipes);
  11. app.post("/recipes/ingredients/remove", home.deleteRecipeIngredient);
  12. app.get("/recipes/update", home.updateRecipes);
  13. app.get("/ingredients", home.getIngredients);
  14. app.post("/merchant/ingredients/create", home.addMerchantIngredient);
  15. app.post("/merchant/recipes/ingredients/create", home.addRecipeIngredient);
  16. }