add: modal set proposals

This commit is contained in:
Alexandro Uc Santos
2023-12-19 21:17:34 -06:00
parent bc49895b01
commit 2bea640d49
8 changed files with 240 additions and 4 deletions

13
src/services/vehicles.js Normal file
View File

@@ -0,0 +1,13 @@
import api from "../lib/axios";
export const getVehicles = async(filter) => {
try {
const endpoint = `/vehicles/${filter}`;
const {data} = await api.get(endpoint);
return data;
} catch (error) {
console.log(error);
return null;
}
}