From c0836acc5e081314d9a7376677d29c742af493bf Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 25 Sep 2022 19:44:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=86=20Change=20order=20of=20served=20u?= =?UTF-8?q?p=20files,=20fixes=20everything=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 28692a58..9b5bd9b2 100644 --- a/server.js +++ b/server.js @@ -72,6 +72,7 @@ const app = express() // Load SSL redirection middleware .use(sslServer.middleware) // Serves up static files + .use(express.static(path.join(__dirname, 'user-data'))) .use(express.static(path.join(__dirname, 'dist'))) .use(express.static(path.join(__dirname, 'user-data'))) .use(express.static(path.join(__dirname, 'public'), { index: 'initialization.html' })) @@ -88,7 +89,7 @@ const app = express() printWarning(`Error running status check for ${req.url}\n`, e); } }) - // POST Endpoint used to save config, by writing conf.yml to disk + // POST Endpoint used to save config, by writing config file to disk .use(ENDPOINTS.save, method('POST', (req, res) => { try { saveConfig(req.body, (results) => { res.end(results); });