mirror of
https://github.com/fawazahmed0/exchange-api.git
synced 2025-06-29 18:21:14 +00:00
Update MIGRATION.md
This commit is contained in:
parent
0e8e277124
commit
7bfd8f0893
@ -4,7 +4,7 @@
|
|||||||
- https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/{date}/{endpoint}
|
- https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/{date}/{endpoint}
|
||||||
+ https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@{date}/v1/{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
|
```diff
|
||||||
- json = fetchJSON(`/currencies/{fromCurrency}/{toCurrency}`)
|
- json = fetchJSON(`/currencies/{fromCurrency}/{toCurrency}`)
|
||||||
+ json = fetchJSON(`/currencies/{fromCurrency}`)
|
+ json = fetchJSON(`/currencies/{fromCurrency}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user