feat: create route to return title information

Summary:

Test Plan:
This commit is contained in:
2024-05-15 23:03:08 -04:00
parent 695a1bb4cd
commit 68c082493e
18 changed files with 1367 additions and 4 deletions

12
src/mocks/anify/title.ts Normal file
View File

@@ -0,0 +1,12 @@
import { HttpResponse, http } from "msw";
export function getAnifyTitle() {
return http.get(`https://api.anify.tv/info`, ({ request }) => {
// Construct a URL instance out of the intercepted request.
const url = new URL(request.url);
const id = url.searchParams.get("id");
// TODO: Actually return a response
return HttpResponse.json({ bannerImage: null, countryOfOrigin: "JP" });
});
}