From af8afea421d209f28ef0a26156f5bd070f5fae94 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 13 Jun 2023 19:42:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(chatComponent):=20update=20?= =?UTF-8?q?API=20endpoint=20for=20build=20stream=20=F0=9F=9A=80=20feat(vit?= =?UTF-8?q?e.config.ts):=20add=20new=20API=20route=20for=20build=20stream?= =?UTF-8?q?=20The=20API=20endpoint=20for=20the=20build=20stream=20has=20be?= =?UTF-8?q?en=20updated=20to=20`/api/v1/build/stream/${flowId}`=20to=20imp?= =?UTF-8?q?rove=20consistency=20with=20the=20naming=20conventions.=20The?= =?UTF-8?q?=20`vite.config.ts`=20file=20has=20been=20updated=20to=20includ?= =?UTF-8?q?e=20the=20new=20API=20route=20for=20the=20build=20stream.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chatComponent/buildTrigger/index.tsx | 2 +- src/frontend/vite.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx index c09d2bb82..b82af8dae 100644 --- a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx +++ b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx @@ -58,7 +58,7 @@ export default function BuildTrigger({ // Step 2: Use the session ID to establish an SSE connection using EventSource let validationResults = []; let finished = false; - const apiUrl = `/build/stream/${flowId}`; + const apiUrl = `/api/v1/build/stream/${flowId}`; const eventSource = new EventSource(apiUrl); eventSource.onmessage = (event) => { diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index d572ebc07..58ee67335 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -7,6 +7,7 @@ const apiRoutes = [ "^/api/v1/validate/*", "/api/v1/chat/*", "/api/v1/version", + "^/api/v1/build/*", "/health", ];