add: search loads

This commit is contained in:
Alexandro Uc Santos
2023-12-18 21:25:56 -06:00
parent 2a4bde6024
commit bc49895b01
10 changed files with 335 additions and 12 deletions

View File

@@ -66,6 +66,18 @@ export const getUsersCompany = async(filter) => {
const endpoint = `/v1/users?${filter}`;
// console.log({endpoint});
const {data} = await api.get(endpoint);
return data;
} catch (error) {
console.log(error);
return [];
}
}
export const getPublicUsersCompany = async(filter) => {
try {
const endpoint = `/v1/public-companies/users/${filter}`;
// console.log({endpoint});
const {data} = await api.get(endpoint);
// console.log(data);
return data.data;
} catch (error) {