Skip to content

Commit

Permalink
updated api
Browse files Browse the repository at this point in the history
  • Loading branch information
saar120 committed Dec 31, 2021
1 parent d99c34a commit 4a6d4e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//--------------------- Data Creation---------------------

const apis = {
proxy: "https://api.codetabs.com/v1/proxy?quest=",
countryAPI: "https://restcountries.herokuapp.com/api/v1/",
countryAPI: "https://restcountries.com/v3.1/all",
covidAPI: "https://corona-api.com/countries/",
covidGlobal: "https://corona-api.com/timeline",
};
Expand All @@ -14,7 +13,7 @@ const continentsClicked = [];
// Create and object that contains all countries by continent.
const getCountriesData = async () => {
try {
const { data } = await axios.get(apis.proxy + apis.countryAPI);
const { data } = await axios.get(apis.countryAPI);
data.forEach((country) => {
region = country.region.toLowerCase();
countriesData[region]
Expand Down

0 comments on commit 4a6d4e4

Please sign in to comment.