From 88b8df26990bfa62c57a4f628e7f5c4b675f9821 Mon Sep 17 00:00:00 2001 From: Jose Maria Villac Pinheiro Date: Tue, 24 Jul 2018 11:45:30 -0300 Subject: [PATCH] V. 0.8.4 - Production test. --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 2ee20f1..6ee1399 100644 --- a/app.js +++ b/app.js @@ -11,7 +11,7 @@ const keys = require("./config/keys"); var index = require("./routes/index"); var app = express(); - +app.use("/", index); /** * Production version verification. It needs to build for React client. */ @@ -56,7 +56,7 @@ app.use(express.static(path.join(__dirname, "public"))); app.use(passport.initialize()); app.use(passport.session()); -app.use("/", index); + // catch 404 and forward to error handler app.use(function(req, res, next) { -- libgit2 0.21.2