Commit 88b8df26990bfa62c57a4f628e7f5c4b675f9821
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
app.js
... | ... | @@ -11,7 +11,7 @@ const keys = require("./config/keys"); |
11 | 11 | var index = require("./routes/index"); |
12 | 12 | |
13 | 13 | var app = express(); |
14 | - | |
14 | +app.use("/", index); | |
15 | 15 | /** |
16 | 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 | 56 | app.use(passport.initialize()); |
57 | 57 | app.use(passport.session()); |
58 | 58 | |
59 | -app.use("/", index); | |
59 | + | |
60 | 60 | |
61 | 61 | // catch 404 and forward to error handler |
62 | 62 | app.use(function(req, res, next) { | ... | ... |