|
|
@@ -10,43 +10,44 @@ module.exports = function(app){
|
|
|
app.get("/", renderer.landingPage);
|
|
|
app.get("/dashboard", renderer.displayDashboard);
|
|
|
app.get("/information", renderer.displayLegal);
|
|
|
- app.get("/data", renderer.displayData);
|
|
|
app.get("/resetpassword/*", renderer.displayPassReset);
|
|
|
|
|
|
//Merchant
|
|
|
app.post("/merchant/create/none", merchantData.createMerchantNone);
|
|
|
- app.get("/merchant/create/clover", merchantData.createMerchantClover);
|
|
|
- app.get("/merchant/recipes/update", merchantData.updateRecipes);
|
|
|
- app.post("/merchant/recipes/remove", merchantData.removeRecipe);
|
|
|
- app.post("/merchant/ingredients/create", merchantData.addMerchantIngredient);
|
|
|
- app.post("/merchant/ingredients/remove", merchantData.removeMerchantIngredient);
|
|
|
- app.post("/merchant/ingredients/update", merchantData.updateMerchantIngredient);
|
|
|
- app.post("/merchant/recipes/ingredients/create", merchantData.addRecipeIngredient);
|
|
|
- app.post("/merchant/recipes/ingredients/update", merchantData.updateRecipeIngredient);
|
|
|
- app.post("/merchant/recipes/ingredients/remove", merchantData.removeRecipeIngredient);
|
|
|
- app.post("/merchant/update", merchantData.updateMerchant);
|
|
|
- app.post("/merchant/password", merchantData.updatePassword);
|
|
|
+ app.post("/merchant/create/clover", merchantData.createMerchantClover);
|
|
|
+ // app.get("/merchant/recipes/update", merchantData.updateRecipes);
|
|
|
+ // app.post("/merchant/recipes/remove", merchantData.removeRecipe);
|
|
|
+ // app.post("/merchant/ingredients/add/:id", merchantData.addMerchantIngredient);
|
|
|
+ // app.post("/merchant/ingredients/remove", merchantData.removeMerchantIngredient);
|
|
|
+ app.put("/merchant/ingredients/update", merchantData.updateMerchantIngredient);
|
|
|
+ // app.post("/merchant/recipes/ingredients/create", merchantData.addRecipeIngredient);
|
|
|
+ // app.post("/merchant/recipes/ingredients/update", merchantData.updateRecipeIngredient);
|
|
|
+ // app.post("/merchant/recipes/ingredients/remove", merchantData.removeRecipeIngredient);
|
|
|
+ // app.post("/merchant/update", merchantData.updateMerchant);
|
|
|
+ // app.post("/merchant/password", merchantData.updatePassword);
|
|
|
|
|
|
//Ingredients
|
|
|
- app.get("/ingredients", ingredientData.getIngredients);
|
|
|
- app.post("/ingredients/createone", ingredientData.createIngredient); //also adds to merchant
|
|
|
+ // app.get("/ingredients", ingredientData.getIngredients);
|
|
|
+ // app.post("/ingredients/create", ingredientData.createIngredient); //also adds to merchant
|
|
|
|
|
|
//Recipes
|
|
|
- app.post("/recipe/create", recipeData.createRecipe);
|
|
|
+ // app.post("/recipe/create", recipeData.createRecipe);
|
|
|
+
|
|
|
+ //Orders
|
|
|
|
|
|
//Other
|
|
|
- app.post("/purchases/create", otherData.createOrder);
|
|
|
+ // app.post("/purchases/create", otherData.createOrder);
|
|
|
app.post("/login", otherData.login);
|
|
|
app.get("/logout", otherData.logout);
|
|
|
app.get("/cloverlogin", otherData.cloverRedirect);
|
|
|
app.get("/cloverauth*", otherData.cloverAuth);
|
|
|
app.post("/resetpassword", otherData.resetPassword);
|
|
|
|
|
|
- app.post("/getdata", otherData.getData);
|
|
|
+ // app.post("/getdata", otherData.getData);
|
|
|
|
|
|
//Transactions
|
|
|
- app.post("/transactions", transactionData.getTransactions);
|
|
|
- app.get("/purchases", transactionData.getOrders);
|
|
|
- app.post("/transactions/create", transactionData.createTransaction); //Creates transaction for non-pos merchant
|
|
|
+ // app.post("/transactions", transactionData.getTransactions);
|
|
|
+ app.get("/orders", transactionData.getOrders);
|
|
|
+ // app.post("/transactions/create", transactionData.createTransaction); //Creates transaction for non-pos merchant
|
|
|
app.get("/populatesometransactions", transactionData.populate);
|
|
|
}
|