Explorar o código

Recipes are now actually added to DB

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
a02817f89d
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  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