Files
SIG-CM/frontend/admin-panel/src/services/clientService.ts
2025-12-23 15:12:57 -03:00

12 lines
272 B
TypeScript

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;
}
};