(method: string, url: string, data?: any)
| 1 | export const logApiCall = (method: string, url: string, data?: any) => { |
| 2 | if (import.meta.env.DEV) { |
| 3 | console.log(`🔗 API ${method.toUpperCase()} ${url}`, data ? { data } : ''); |
| 4 | } |
| 5 | }; |
| 6 | |
| 7 | export const logApiResponse = (url: string, response: any, error?: any) => { |
| 8 | if (import.meta.env.DEV) { |