From 6dd6fdcf0e2283eda44e1aa42d9110eeb67eb85e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 6 Jun 2026 15:21:23 +0100 Subject: [PATCH] Serve proxied provider surfaces over HTTP --- src/odin/websocket.cjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/odin/websocket.cjs b/src/odin/websocket.cjs index 7b09208..94bcaeb 100644 --- a/src/odin/websocket.cjs +++ b/src/odin/websocket.cjs @@ -30,6 +30,13 @@ function handleHttp(req, res, getCurrentState, getHealth) { return; } + const providerId = providerIdFromDeckUrl(req.url); + if (providerId) { + res.writeHead(200, { "content-type": "application/json" }); + res.end(JSON.stringify(stateForRequest(currentState, req.url))); + return; + } + res.writeHead(404, { "content-type": "text/plain" }); res.end("not found"); }