diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index c9fc7d33..931dcda3 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -564,7 +564,7 @@ lanes: replicas: 2 shutdownDrain: enabled: true - path: /internal/workbench/drain + path: /v1/internal/workbench/drain sleepSeconds: 3 timeoutMs: 2500 env: diff --git a/internal/cloud/server.ts b/internal/cloud/server.ts index 60ff9ddb..5dd9a0b5 100644 --- a/internal/cloud/server.ts +++ b/internal/cloud/server.ts @@ -661,7 +661,7 @@ async function handleRestAdapter(request, response, url, options) { return; } - if (url.pathname === "/internal/workbench/drain") { + if (url.pathname === "/v1/internal/workbench/drain") { if (request.method !== "POST") { sendJson(response, 405, { ok: false, error: { code: "method_not_allowed", message: "POST required." } }); return; @@ -676,7 +676,7 @@ async function handleRestAdapter(request, response, url, options) { timeoutMs: parsePositiveInteger((options.env ?? process.env).HWLAB_WORKBENCH_SSE_DRAIN_TIMEOUT_MS, 2500), env: options.env ?? process.env }); - sendJson(response, 200, { ok: true, route: "/internal/workbench/drain", result }); + sendJson(response, 200, { ok: true, route: "/v1/internal/workbench/drain", result }); return; }