0
0
mirror of https://github.com/fawazahmed0/exchange-api.git synced 2025-06-29 10:11:13 +00:00

Update MIGRATION.md

This commit is contained in:
Fawaz Ahmed 2024-10-18 08:21:39 +05:30 committed by GitHub
parent 0e8e277124
commit 7bfd8f0893
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
- https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/{date}/{endpoint}
+ https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@{date}/v1/{endpoint}
```
2. Change all `/currencies/{currencyCode}/{currencyCode}` endpoints to `/currencies/{currencyCode}` endpoint.
2. Change `/currencies/{currencyCode}/{currencyCode}` -> `/currencies/{currencyCode}`
```diff
- json = fetchJSON(`/currencies/{fromCurrency}/{toCurrency}`)
+ json = fetchJSON(`/currencies/{fromCurrency}`)