Skip to content

Commit 93baa11

Browse files
committed
fixes fetchEpisodes helper function
1 parent 696e6a5 commit 93baa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function mapEpisodeUrlToEpisode(episodes, episodeUrl) {
9696

9797
function fetchEpisodes() {
9898
// More info about the fetch function? https://github.com/bitinn/node-fetch#json
99-
return fetch("https://rickandmortyapi.com/api/character/")
99+
return fetch("https://rickandmortyapi.com/api/episode/")
100100
.then(res => res.json())
101101
.then(json => json.results);
102102
}

0 commit comments

Comments
 (0)