Skip to content

Commit

Permalink
delete: apagando funções de requisição não utilizadas
Browse files Browse the repository at this point in the history
  • Loading branch information
devMarcosVM committed Sep 3, 2024
1 parent a9658b8 commit ce23fdc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions front/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,6 @@ interface SearchParams {
endMonth: string;
}

export const fetchCities = async () => {
try {
const response = await axios.get('http://localhost:5000/cities');
return response.data;
} catch (error) {
console.error('Error fetching cities:', error);
throw error;
}
};

export const fetchUnits = async () => {
try {
const response = await axios.get('http://localhost:5000/units');
return response.data;
} catch (error) {
console.error('Error fetching units:', error);
throw error;
}
};

export const fetchYearlyTendersData = async () => {
try {
const requests = [];
Expand All @@ -41,7 +21,6 @@ export const fetchYearlyTendersData = async () => {
}
};

/* pra quando a API remota estiver com a lógica certa*/
export const fettchYearAndMonthTender = async (params: SearchParams) => {
const { startYear, startMonth, endYear, endMonth } = params;

Expand Down

0 comments on commit ce23fdc

Please sign in to comment.