Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

End points for the axios calls no longer exist. Example documentation does not work out of box. #1

Open
Aaron9174 opened this issue Jul 12, 2020 · 0 comments

Comments

@Aaron9174
Copy link

Aaron9174 commented Jul 12, 2020

I have a local branch with the following changes ready to merge in:
https://corona.lmao.ninja/countries -> https://corona.lmao.ninja/v3/covid-19/countries
https://corona.lmao.ninja.all -> https://corona.lmao.ninja/v3/covid-19/all

Documentation for better out of the box use:

Example

getCovidData = async () => {
        const covid = require('covid19-data');

        // get data about every country, including the world
        const everyCountry = await covid();

        // get data about a specific country - in this case the UK
        const uk = await covid('uk');
        
       // print results for all countries
       console.log(everyCountry);
}

getCovidData();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant