add: search loads
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user