feat: add Consumet as source for /episodes
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { HttpResponse, http } from "msw";
|
||||
|
||||
export function getAnifyEpisodes() {
|
||||
return http.get("https://api.anify.tv/episodes/:aniListId", () => {
|
||||
return http.get("https://api.anify.tv/episodes/:aniListId", ({ params }) => {
|
||||
const aniListId = Number(params["aniListId"]);
|
||||
if (aniListId === 3 || aniListId < 0) {
|
||||
return HttpResponse.json([]);
|
||||
}
|
||||
|
||||
return HttpResponse.json([
|
||||
{
|
||||
providerId: "zoro",
|
||||
|
||||
Reference in New Issue
Block a user