From 842b657c009b886408581b3dd0bae0302064e7a0 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Thu, 24 Oct 2024 08:54:18 -0400 Subject: [PATCH] fix: update mocks --- src/mocks/aniwatch/search.ts | 2 +- src/mocks/aniwatch/sources.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mocks/aniwatch/search.ts b/src/mocks/aniwatch/search.ts index 9895387..7d86667 100644 --- a/src/mocks/aniwatch/search.ts +++ b/src/mocks/aniwatch/search.ts @@ -2,7 +2,7 @@ import { HttpResponse, http } from "msw"; export function getAniwatchSearchResults() { return http.get( - "https://aniwatch.up.railway.app/anime/search", + "https://aniwatch.up.railway.app/api/v2/hianime/search", ({ request }) => { const query = new URL(request.url).searchParams.get("query"); diff --git a/src/mocks/aniwatch/sources.ts b/src/mocks/aniwatch/sources.ts index ad203a2..62f7e16 100644 --- a/src/mocks/aniwatch/sources.ts +++ b/src/mocks/aniwatch/sources.ts @@ -2,7 +2,7 @@ import { HttpResponse, http } from "msw"; export function getAniwatchSources() { return http.get( - "https://aniwatch.up.railway.app/anime/episode-srcs", + "https://aniwatch.up.railway.app/api/v2/hianime/episode/sources", ({ request }) => { const url = new URL(request.url); const id = url.searchParams.get("id");