Files
SIG-CM/frontend/admin-panel/src/services/clientService.ts

12 lines
272 B
TypeScript
Raw Normal View History

2025-12-23 15:12:57 -03:00
import api from './api';
export const clientService = {
getAll: async () => {
const res = await api.get('/clients');
return res.data;
},
getHistory: async (id: number) => {
const res = await api.get(`/clients/${id}/history`);
return res.data;
}
};