🐛 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:
parent
10fce79bc3
commit
a65a88ca45
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue