Feat: Cambios Varios 2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// src/services/clientService.ts
|
||||
import api from './api';
|
||||
|
||||
export const clientService = {
|
||||
@@ -5,8 +6,11 @@ export const clientService = {
|
||||
const res = await api.get('/clients');
|
||||
return res.data;
|
||||
},
|
||||
getHistory: async (id: number) => {
|
||||
const res = await api.get(`/clients/${id}/history`);
|
||||
getSummary: async (id: number) => {
|
||||
const res = await api.get(`/clients/${id}/summary`);
|
||||
return res.data;
|
||||
},
|
||||
update: async (id: number, clientData: any) => {
|
||||
await api.put(`/clients/${id}`, clientData);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user