|
@@ -30,7 +30,7 @@ module.exports = function(app){
|
|
|
app.post("/ingredients/create", ingredientData.createIngredient); //also adds to merchant
|
|
app.post("/ingredients/create", ingredientData.createIngredient); //also adds to merchant
|
|
|
app.put("/ingredients/update", ingredientData.updateIngredient);
|
|
app.put("/ingredients/update", ingredientData.updateIngredient);
|
|
|
app.delete("/ingredients/remove/:id", ingredientData.removeIngredient);
|
|
app.delete("/ingredients/remove/:id", ingredientData.removeIngredient);
|
|
|
- app.post("/ingredients/create/spreadsheet", upload.single("spreadsheet"), ingredientData.createFromSpreadsheet);
|
|
|
|
|
|
|
+ app.post("/ingredients/create/spreadsheet", upload.single("ingredients"), ingredientData.createFromSpreadsheet);
|
|
|
|
|
|
|
|
//Recipes
|
|
//Recipes
|
|
|
app.post("/recipe/create", recipeData.createRecipe);
|
|
app.post("/recipe/create", recipeData.createRecipe);
|
|
@@ -38,7 +38,7 @@ module.exports = function(app){
|
|
|
app.delete("/recipe/remove/:id", recipeData.removeRecipe);
|
|
app.delete("/recipe/remove/:id", recipeData.removeRecipe);
|
|
|
app.get("/recipe/update/clover", recipeData.updateRecipesClover);
|
|
app.get("/recipe/update/clover", recipeData.updateRecipesClover);
|
|
|
app.get("/recipe/update/square", recipeData.updateRecipesSquare);
|
|
app.get("/recipe/update/square", recipeData.updateRecipesSquare);
|
|
|
- app.post("/recipes/create/spreadsheet", upload.single("spreadsheet"), recipeData.createFromSpreadsheet);
|
|
|
|
|
|
|
+ app.post("/recipes/create/spreadsheet", upload.single("recipes"), recipeData.createFromSpreadsheet);
|
|
|
|
|
|
|
|
//Orders
|
|
//Orders
|
|
|
app.get("/order", orderData.getOrders);
|
|
app.get("/order", orderData.getOrders);
|