()
| 7 | }) |
| 8 | |
| 9 | export const getCustomers = async () => { |
| 10 | try { |
| 11 | return await axios.get( |
| 12 | `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers`, |
| 13 | getAuthConfig() |
| 14 | ) |
| 15 | } catch (e) { |
| 16 | throw e; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | export const saveCustomer = async (customer) => { |
| 21 | try { |
no test coverage detected