Minor changes

This commit is contained in:
lowlighter
2020-10-18 12:42:59 +02:00
parent 18f3c2ee74
commit 833e730edc
3 changed files with 6 additions and 5 deletions

View File

@@ -47,9 +47,10 @@
})
//Base routes
app.get("/", (req, res) => res.sendFile(path.resolve("src/html", "index.html")))
app.get("/index.html", (req, res) => res.sendFile(path.resolve("src/html", "index.html")))
app.get("/placeholder.svg", (req, res) => res.sendFile(path.resolve("src/html", "placeholder.svg")))
const statics = path.resolve("src/html")
app.get("/", (req, res) => res.sendFile(`${statics}/index.html`))
app.get("/index.html", (req, res) => res.sendFile(`${statics}/index.html`))
app.get("/placeholder.svg", (req, res) => res.sendFile(`${statics}/placeholder.svg`))
app.get("/favicon.ico", (req, res) => res.sendStatus(204))
//Metrics