Skip to content

Update currency API URL#61

Open
i-midhunbabu wants to merge 1 commit intoshradha-khapra:mainfrom
i-midhunbabu:patch-1
Open

Update currency API URL#61
i-midhunbabu wants to merge 1 commit intoshradha-khapra:mainfrom
i-midhunbabu:patch-1

Conversation

@i-midhunbabu
Copy link
Copy Markdown

@i-midhunbabu i-midhunbabu commented Feb 24, 2026

Updated the API endpoint format.

Check: https://github.com/fawazahmed0/exchange-api/blob/main/MIGRATION.md


What's Changed

1. Base URL Updated

const BASE_URL = "https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies";

2. Endpoint Structure Refactored

const URL = `${BASE_URL}/${fromCurr.value.toLowerCase()}.json`;

let rate = data[fromCurr.value.toLowerCase()][toCurr.value.toLowerCase()];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant