Explorar o código

Commit to change branch

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
2c1fc1796f
Modificáronse 3 ficheiros con 6 adicións e 2 borrados
  1. 4 0
      controllers/merchantData.js
  2. 1 1
      controllers/renderer.js
  3. 1 1
      routes.js

+ 4 - 0
controllers/merchantData.js

@@ -691,5 +691,9 @@ module.exports = {
 
                 return res.json(errorMessage);
             });
+    },
+
+    updateMerchant: function(req, res){
+        console.log("Something or other");
     }
 }

+ 1 - 1
controllers/renderer.js

@@ -250,7 +250,7 @@ module.exports = {
 
     //GET - Renders the information page
     //Renders information page
-    informationPage: function(req, res){
+    legalPage: function(req, res){
         return res.render("informationPage/information");
     }
 }

+ 1 - 1
routes.js

@@ -10,7 +10,7 @@ module.exports = function(app){
     app.get("/merchant/new/clover", renderer.merchantSetupClover);
     app.get("/merchant/new/none", renderer.merchantSetupNone);
     app.get("/recipes", renderer.displayRecipes);
-    app.get("/legal", renderer.informationPage);
+    app.get("/legal", renderer.legalPage);
 
     //Merchant
     app.get("/merchant/recipes/update", merchantData.updateRecipes);