feat: add Amvstrm as source for /episodes

Summary:

Test Plan:
This commit is contained in:
2024-05-26 13:22:03 -04:00
parent e91f92354c
commit b661b59078
7 changed files with 125 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import { HttpResponse, http } from "msw";
export function getAnifyEpisodes() {
return http.get("https://api.anify.tv/episodes/:aniListId", ({ params }) => {
const aniListId = Number(params["aniListId"]);
if (aniListId === 3 || aniListId < 0) {
if (aniListId === 3 || aniListId === 4 || aniListId < 0) {
return HttpResponse.json([]);
}