Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ˜† Change order of served up files, fixes everything :)

Alicia Sykesc0836acc5e08
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); });