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

@@ -16,7 +16,7 @@ export default function useSearchLoads() {
filterStr = "?"+cleanfilterArr.join("&");
}
try {
const endpoint = `/loads/${filterStr}&$sort%5BcreatedAt%5D=-1`;
const endpoint = `/v1/loads/find${filterStr}&$sort%5BcreatedAt%5D=-1`;
const {data} = await api.get(endpoint);
console.log(data);
total.value = data.total;