mirror of
https://github.com/Lomanic/presence-button-web
synced 2025-12-01 17:56:29 +00:00
⚾️👋 Checkpoint
./server.js:933874/49
This commit is contained in:
parent
cbe00e9a9e
commit
ed12db0c4d
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ const redirectToHTTPS = (req, res, next) => {
|
||||||
app.use("/api", redirectToHTTPS);
|
app.use("/api", redirectToHTTPS);
|
||||||
app.use("/img", 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) => {
|
app.get("/", (req, res) => {
|
||||||
res.sendFile(__dirname + "/views/index.html");
|
res.sendFile(__dirname + "/views/index.html");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue