Comment 27191 on #1543, correction 27192. Candidate afb2ae0e. Co-Authored-By: Claude Opus 5.5 <[email protected]>
13 lines
1.1 KiB
Diff
13 lines
1.1 KiB
Diff
diff --git a/packages/webui/src/serve.mjs b/packages/webui/src/serve.mjs
|
|
index 8e89e3ed..abb97b7f 100644
|
|
--- a/packages/webui/src/serve.mjs
|
|
+++ b/packages/webui/src/serve.mjs
|
|
@@ -120,7 +120,6 @@ export async function startServer({ host = '127.0.0.1', port = 7330, board = DEF
|
|
if (req.method !== 'GET') return json(res, 405, { error: 'method not allowed' });
|
|
const a = server.address(), address = `http://${a.family === 'IPv6' ? `[${a.address}]` : a.address}:${a.port}/`;
|
|
if (path === '/api/settings') return consoleRead(res, async () => ({ ...(reads ? await reads.settings() : { release: null, business: null, notifier: { refused: 'not-configured', message: 'the Console has no reads configured' } }), board: upstream, address }));
|
|
- if (!reads) return json(res, 503, { error: 'not-configured', message: 'the Console has no reads configured' });
|
|
if (path === '/api/business') return consoleRead(res, () => reads.business());
|
|
if (path === '/api/queue') return consoleRead(res, () => reads.queue());
|
|
const id = path.slice('/api/queue/'.length);
|