First tests and integration of radio panel

This commit is contained in:
Davide Passoni
2024-08-31 10:12:25 +02:00
parent ebfa7916c6
commit ba2c48dead
26 changed files with 844 additions and 69 deletions

View File

@@ -7,7 +7,7 @@ module.exports = function (configLocation) {
if (fs.existsSync(configLocation)) {
let rawdata = fs.readFileSync(configLocation, "utf-8");
const config = JSON.parse(rawdata);
res.send(JSON.stringify(config.frontend));
res.send(JSON.stringify({...config.frontend, ...(config.audio ?? {}) }));
res.end()
} else {
res.sendStatus(404);