load tracking public

This commit is contained in:
Alexandro Uc Santos
2024-03-28 19:31:43 -06:00
parent 9b8fb0aac0
commit 479d7fbdc4
7 changed files with 88 additions and 31 deletions

View File

@@ -61,6 +61,18 @@ export const getCompanies = async(filter) => {
}
}
export const getLoadPublic = async(id) => {
try {
const endpoint = `/v1/public-load-tracking/${id}`;
console.log(endpoint);
const {data} = await api.get(endpoint);
return data;
} catch (error) {
console.log(error);
return null;
}
}
export const getUsersCompany = async(filter) => {
try {
const endpoint = `/v1/users/find?${filter}`;