remote-codex 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -607,6 +607,22 @@ function buildRelayServer(config2) {
|
|
|
607
607
|
targetPath
|
|
608
608
|
});
|
|
609
609
|
});
|
|
610
|
+
app2.get("/relay/devices/:deviceId/healthz", async (request, reply) => {
|
|
611
|
+
const user = requireRelayUser(request, reply, store);
|
|
612
|
+
if (!user) {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
const { deviceId } = z.object({ deviceId: z.string().uuid() }).parse(request.params);
|
|
616
|
+
await forwardRelayHttp({
|
|
617
|
+
request,
|
|
618
|
+
reply,
|
|
619
|
+
state,
|
|
620
|
+
store,
|
|
621
|
+
user,
|
|
622
|
+
deviceId,
|
|
623
|
+
targetPath: "/healthz"
|
|
624
|
+
});
|
|
625
|
+
});
|
|
610
626
|
app2.all("/relay/api/*", async (request, reply) => {
|
|
611
627
|
const user = requireRelayUser(request, reply, store);
|
|
612
628
|
if (!user) {
|