From bf15a3481d8f0766ecd0c557b07c2e66edd982a4 Mon Sep 17 00:00:00 2001 From: Jose Maria Villac Pinheiro Date: Mon, 23 Jul 2018 08:10:47 -0300 Subject: [PATCH] V. 0.7.2 - Added route to consumer to test production access. --- client/package.json | 3 +++ routes/index.js | 1 + routes/reactMap.js | 5 +++++ 3 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 routes/reactMap.js diff --git a/client/package.json b/client/package.json index 525ee3e..4b5c0a5 100644 --- a/client/package.json +++ b/client/package.json @@ -26,6 +26,9 @@ }, "/consumidores": { "target": "http://localhost:5000" + }, + "/consumer": { + "target": "http://localhost:5000" } }, "dependencies": { diff --git a/routes/index.js b/routes/index.js index de4a6f3..55b599e 100644 --- a/routes/index.js +++ b/routes/index.js @@ -11,6 +11,7 @@ mongoose.connect(keys.mongoURI); require("./authRoutes")(router); require("./mapRoutes")(router); require("./consumerRoutes")(router); +require("./reactMap")(router); /* GET home page. */ router.get("/", function(req, res, next) { diff --git a/routes/reactMap.js b/routes/reactMap.js new file mode 100644 index 0000000..29573f4 --- /dev/null +++ b/routes/reactMap.js @@ -0,0 +1,5 @@ +module.exports = router => { + router.get("/consumer", function (req, res, next) { + res.redirect("../client/public/index.html"); + }); +}; \ No newline at end of file -- libgit2 0.21.2