🐛 fix(vite.config.ts): update validate route to use regex pattern

The validate route was updated to use a regex pattern instead of a string pattern to match all routes that start with "/api/v1/validate/". This change ensures that all routes that match the pattern are correctly routed to the validate endpoint.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-12 07:03:16 -03:00
commit a65a88ca45

View file

@ -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",