EN-94: fix: Migrate to api v1

This commit is contained in:
Josepablo Cruz Baas
2024-03-12 03:25:39 +00:00
parent 5e6de53098
commit 33e5c8caa4
11 changed files with 90 additions and 31 deletions

View File

@@ -111,7 +111,7 @@ export const searchcategories = async(query) => {
export const searchProducts = async(query) => {
try {
const endpoint = "/products/?name[$regex]=" + query + "&name[$options]=i";
const endpoint = "/v1/products/find?regex=" + query;
const {data} = await api.get(endpoint);
return data.data;
} catch (error) {