Optimize request's speed + size with different endpoint

pull/147/head
tin33392js 3 years ago
parent 236f68461b
commit 3db56034f8

@ -26,7 +26,7 @@ const fetchPokemons = async () => {
}
const getPokemon = async (id) => {
const url = `https://pokeapi.co/api/v2/pokemon/${id}`
const url = `https://pokeapi.co/api/v2/pokemon-form/${id}`
const res = await fetch(url)
const data = await res.json()
createPokemonCard(data)

Loading…
Cancel
Save