1
0
mirror of https://api.glitch.com/git/presence-button synced 2024-12-04 19:07:29 +00:00

👋 Checkpoint

./server.js:933874/49
This commit is contained in:
Glitch (hello-express) 2019-12-19 13:01:01 +00:00
parent cbe00e9a9e
commit ed12db0c4d

View File

@ -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");
});