feat: create route to search for titles

Summary:

Test Plan:
This commit is contained in:
2024-05-16 01:21:06 -04:00
parent 359b73c7a8
commit 88b1a4ced5
13 changed files with 3808 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ export async function fetchTitleFromAmvstrm(
): Promise<Title | undefined> {
return Promise.all([
fetch(`https://api-amvstrm.nyt92.eu.org/api/v2/info/${aniListId}`).then(
(res) => res.json() as Promise<any>,
(res) => res.json<any>(),
),
fetchMissingInformationFromAnify(aniListId).catch((err) => {
console.error("Failed to get missing information from Anify", err);