12 lines
272 B
TypeScript
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;
|
|
}
|
|
}; |