(id)
| 41 | } |
| 42 | |
| 43 | export const deleteCustomer = async (id) => { |
| 44 | try { |
| 45 | return await axios.delete( |
| 46 | `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers/${id}`, |
| 47 | getAuthConfig() |
| 48 | ) |
| 49 | } catch (e) { |
| 50 | throw e; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | export const login = async (usernameAndPassword) => { |
| 55 | try { |
no test coverage detected