| 123456789101112131415161718192021222324252627282930313233 |
- const home = require("./controllers/home");
- module.exports = function(app){
- //Render page
- app.get("/", home.landingPage);
- app.get("/inventory", home.displayInventory);
- app.get("/merchant/new/clover", home.merchantSetupClover);
- app.get("/merchant/new/none", home.merchantSetupNone);
- app.get("/recipes", home.displayRecipes);
- //Merchant
- app.get("/merchant/recipes/update", home.updateRecipes);
- app.post("/merchant/clover/create", home.createMerchantClover);
- app.post("/merchant/none/create", home.createMerchantNone);
- app.post("/merchant/ingredients/create", home.addMerchantIngredient);
- app.post("/merchant/ingredients/remove", home.removeMerchantIngredient);
- app.post("/merchant/ingredients/update", home.updateMerchantIngredient);
- app.post("/merchant/recipes/ingredients/create", home.addRecipeIngredient);
- app.post("/merchant/recipes/ingredients/update", home.updateRecipeIngredient);
- app.post("/merchant/recipes/ingredients/remove", home.removeRecipeIngredient);
- //Ingredients
- app.get("/ingredients", home.getIngredients);
- app.post("/ingredients/create", home.createNewIngredients);
- app.post("/ingredients/createone", home.createIngredient); //also adds to merchant
- //Clover API
- app.get("/getrecipes", home.getCloverRecipes);
- //Other
- app.get("/unregistered", home.unregistered);
- app.post("/login", home.login);
- }
|