Fixed Express.static mime type

This commit is contained in:
Klemek
2019-06-23 14:14:35 +02:00
parent 14cd1436c3
commit 55e258e093
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ module.exports = (config) => {
});
// serve all static files via get
app.get('*', express.static(config['data_dir']));
app.get('*', express.static(path.join(__dirname, '..', config['data_dir'])));
// catch express.static errors (mostly not found) by displaying 404
app.get('*', (req, res) => {
showError(req.path, 404, res);