From ed12db0c4d167a3105f504593b7cb398c95e4fb5 Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Thu, 19 Dec 2019 13:01:01 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=BE=EF=B8=8F=F0=9F=91=8B=20Checkpoint=20.?= =?UTF-8?q?/server.js:933874/49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 9a040dc..8f96bf7 100644 --- a/server.js +++ b/server.js @@ -35,7 +35,7 @@ const redirectToHTTPS = (req, res, next) => { app.use("/api", redirectToHTTPS); app.use("/img", redirectToHTTPS); -app.all("/", redirectToHTTPS); // no app.use here because it would match every path +app.all("/", redirectToHTTPS); // no app.use here because it would match every path https://github.com/expressjs/express/issues/3260 app.get("/", (req, res) => { res.sendFile(__dirname + "/views/index.html"); });