(url: string, response: any, error?: any)
| 5 | }; |
| 6 | |
| 7 | export const logApiResponse = (url: string, response: any, error?: any) => { |
| 8 | if (import.meta.env.DEV) { |
| 9 | if (error) { |
| 10 | console.error(`❌ API Error ${url}:`, error); |
| 11 | } else { |
| 12 | console.log(`API Success ${url}:`, response); |
| 13 | } |
| 14 | } |
| 15 | }; |