Przeglądaj źródła

Recipes are now actually added to DB

Lee Morgan 6 lat temu
rodzic
commit
a02817f89d
2 zmienionych plików z 1 dodań i 2 usunięć
  1. 0 1
      controllers/recipeData.js
  2. 1 1
      routes.js

+ 0 - 1
controllers/recipeData.js

@@ -9,7 +9,6 @@ module.exports = {
     //  req.body.ingredients: array of ingredients (object) in recipe
     //      id: id of ingredient
     //      quantity: quantity of ingredient in recipe
-    //Returns the newly created recipe
     createRecipe: function(req, res){
         if(!req.session.user){
             req.session.error = "Must be logged in to do that";

+ 1 - 1
routes.js

@@ -31,7 +31,7 @@ module.exports = function(app){
     // app.post("/ingredients/create", ingredientData.createIngredient);  //also adds to merchant
 
     //Recipes
-    // app.post("/recipe/create", recipeData.createRecipe);
+    app.post("/recipe/create", recipeData.createRecipe);
 
     //Orders