From 0159915b4f8f643fb81516c14745aa92ce375bd1 Mon Sep 17 00:00:00 2001 From: cheetah Date: Thu, 1 Dec 2022 01:17:12 +0100 Subject: [PATCH] added static serve for @mdi/font --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d4012b7..7cc5726 100644 --- a/index.js +++ b/index.js @@ -49,6 +49,8 @@ const app = express(), appConfig = express() const appServer = require('http').createServer(app) app.use(express.json()) app.use(express.static('html_main')) +app.use(express.static(__dirname + '/node_modules/@mdi/font')) + appConfig.use(express.json()) appConfig.use(express.static('html')) @@ -168,4 +170,4 @@ setInterval(memstats, 10e3)*/ appServer.listen(config.general.port) if (config.general.configWebInterfaceEnabled === true) { appConfig.listen(config.general.configPort) -} \ No newline at end of file +}