(usernameAndPassword)
| 52 | } |
| 53 | |
| 54 | export const login = async (usernameAndPassword) => { |
| 55 | try { |
| 56 | return await axios.post( |
| 57 | `${import.meta.env.VITE_API_BASE_URL}/api/v1/auth/login`, |
| 58 | usernameAndPassword |
| 59 | ) |
| 60 | } catch (e) { |
| 61 | throw e; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | export const uploadCustomerProfilePicture = async (id, formData) => { |
| 66 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected