(customer)
| 18 | } |
| 19 | |
| 20 | export const saveCustomer = async (customer) => { |
| 21 | try { |
| 22 | return await axios.post( |
| 23 | `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers`, |
| 24 | customer |
| 25 | ) |
| 26 | } catch (e) { |
| 27 | throw e; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | export const updateCustomer = async (id, update) => { |
| 32 | try { |
no outgoing calls
no test coverage detected