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