From a65a88ca459036db51565c1fe792e56c8bf80581 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 12 Jun 2023 07:03:16 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(vite.config.ts):=20update=20?= =?UTF-8?q?validate=20route=20to=20use=20regex=20pattern=20The=20validate?= =?UTF-8?q?=20route=20was=20updated=20to=20use=20a=20regex=20pattern=20ins?= =?UTF-8?q?tead=20of=20a=20string=20pattern=20to=20match=20all=20routes=20?= =?UTF-8?q?that=20start=20with=20"/api/v1/validate/".=20This=20change=20en?= =?UTF-8?q?sures=20that=20all=20routes=20that=20match=20the=20pattern=20ar?= =?UTF-8?q?e=20correctly=20routed=20to=20the=20validate=20endpoint.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index 6917ecc28..0212fccdc 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -4,7 +4,7 @@ import svgr from "vite-plugin-svgr"; const apiRoutes = [ "/api/v1/all", "/api/v1/predict", - "/api/v1/validate/*", + "^/api/v1/validate/*", "/api/v1/chat/*", "/api/v1/version", "/health",