Commit bf15a3481d8f0766ecd0c557b07c2e66edd982a4

Authored by José Maria Villac Pinheiro
1 parent c07e4d11

V. 0.7.2 - Added route to consumer to test production access.

client/package.json
... ... @@ -26,6 +26,9 @@
26 26 },
27 27 "/consumidores": {
28 28 "target": "http://localhost:5000"
  29 + },
  30 + "/consumer": {
  31 + "target": "http://localhost:5000"
29 32 }
30 33 },
31 34 "dependencies": {
... ...
routes/index.js
... ... @@ -11,6 +11,7 @@ mongoose.connect(keys.mongoURI);
11 11 require("./authRoutes")(router);
12 12 require("./mapRoutes")(router);
13 13 require("./consumerRoutes")(router);
  14 +require("./reactMap")(router);
14 15  
15 16 /* GET home page. */
16 17 router.get("/", function(req, res, next) {
... ...
routes/reactMap.js 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +module.exports = router => {
  2 + router.get("/consumer", function (req, res, next) {
  3 + res.redirect("../client/public/index.html");
  4 + });
  5 +};
0 6 \ No newline at end of file
... ...