add: view carriers

This commit is contained in:
Alexandro Uc Santos
2023-12-01 21:32:13 -06:00
parent df8aff2745
commit 85095bda36
8 changed files with 335 additions and 10 deletions

View File

@@ -10,4 +10,15 @@ export const getCompany = async(companyId) => {
console.log(error);
return null;
}
}
export const editCompany = async(companyId, formData) => {
try {
const endpoint = `/companies/${companyId}`;
const {data} = await api.patch(endpoint, formData);
return data;
} catch (error) {
console.log(error);
return null;
}
}