Skip to content

Commit

Permalink
API endpoint was changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MhmtMutlu committed Nov 5, 2021
1 parent 9df1392 commit ffa3909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/CountriesApi.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function CountriesApi() {
const [countries, setCountries] = useState([]);

useEffect(() => {
axios.get('https://restcountries.eu/rest/v2/all')
axios.get('https://restcountries.com/v2/all')
.then((response) => setCountries(response.data));
}, []);

Expand Down

0 comments on commit ffa3909

Please sign in to comment.