Commit 88b8df26990bfa62c57a4f628e7f5c4b675f9821

Authored by José Maria Villac Pinheiro
1 parent 3e7ca3a0
Exists in master

V. 0.8.4 - Production test.

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -11,7 +11,7 @@ const keys = require("./config/keys"); @@ -11,7 +11,7 @@ const keys = require("./config/keys");
11 var index = require("./routes/index"); 11 var index = require("./routes/index");
12 12
13 var app = express(); 13 var app = express();
14 - 14 +app.use("/", index);
15 /** 15 /**
16 * Production version verification. It needs to build for React client. 16 * Production version verification. It needs to build for React client.
17 */ 17 */
@@ -56,7 +56,7 @@ app.use(express.static(path.join(__dirname, "public"))); @@ -56,7 +56,7 @@ app.use(express.static(path.join(__dirname, "public")));
56 app.use(passport.initialize()); 56 app.use(passport.initialize());
57 app.use(passport.session()); 57 app.use(passport.session());
58 58
59 -app.use("/", index); 59 +
60 60
61 // catch 404 and forward to error handler 61 // catch 404 and forward to error handler
62 app.use(function(req, res, next) { 62 app.use(function(req, res, next) {