Commit 93baa112 authored by alexlbr's avatar alexlbr

fixes fetchEpisodes helper function

parent 696e6a57
......@@ -96,7 +96,7 @@ function mapEpisodeUrlToEpisode(episodes, episodeUrl) {
function fetchEpisodes() {
// More info about the fetch function? https://github.com/bitinn/node-fetch#json
return fetch("https://rickandmortyapi.com/api/character/")
return fetch("https://rickandmortyapi.com/api/episode/")
.then(res => res.json())
.then(json => json.results);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment