Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Use v2 episodes route
Browse files Browse the repository at this point in the history
  • Loading branch information
devaoto committed May 8, 2024
1 parent 9b9f6dc commit 348a793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export async function getInfo(id: string) {
export async function getEpisodes(id: string) {
try {
const response = await fetch(
`${process.env.NEXT_PUBLIC_DOMAIN}/api/v1/episodes/${id}`,
`${process.env.NEXT_PUBLIC_DOMAIN}/api/v2/episodes/${id}?provider=anizone`,
);
let episodes: SiteEpisode[] | undefined;

Expand Down

0 comments on commit 348a793

Please sign in to comment.