Fix static path

This commit is contained in:
Daniel Bulant 2020-04-14 10:42:31 +02:00 committed by GitHub
parent af7613ab86
commit 3135102d3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ function query(conn, data, params = []) {
};
if(!apiOnly)
app.use("/view", express.static('static'))
app.use("/view", express.static(__dirname + '/static'))
app.get("/", (req, res) => {
res.json({