Claude: Phase 2 seems to work
This commit is contained in:
@@ -216,7 +216,9 @@ function createSnapshotRouter(go2rtcUrl) {
|
||||
if (!r.ok) throw new Error(`go2rtc HTTP ${r.status}`);
|
||||
const streams = await r.json();
|
||||
res.json({
|
||||
cameras: Object.keys(streams).map(id => ({ id, url: `/api/snapshot/${id}` })),
|
||||
cameras: Object.keys(streams)
|
||||
.filter(id => !id.endsWith('_hires'))
|
||||
.map(id => ({ id, url: `/api/snapshot/${id}` })),
|
||||
});
|
||||
} catch (err) {
|
||||
res.status(503).json({ error: `go2rtc nicht erreichbar: ${err.message}` });
|
||||
|
||||
Reference in New Issue
Block a user