// Use a proxy endpoint to hide the API key async function fetchExchangeRates() { const response = await fetch('/api-proxy.php'); const data = await response.json(); return data.conversion_rates; }