Your task is create server with one route, that will return current USD rate for cryptocurrency provided as parameter.
http://localhost:3000/rates?currency=bitcoin
http://localhost:3000/rates?currency=ethereum
{
"usd": "1536.8376043904155762"
}
- Cryptocurrency API for rates: https://docs.coincap.io/
- As parameter we can pass any cryptocurrency that provided with coincap API.
- If pass not existing value, need to show error message, and change response status to 404.