From d6fe2c594a170553e9b88efc6338456dfd13391c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 13 Sep 2023 01:46:20 -0700 Subject: refactor(anilist): move to api --- src/lib/anime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/anime.ts') diff --git a/src/lib/anime.ts b/src/lib/anime.ts index c9bba378..3b3b178c 100644 --- a/src/lib/anime.ts +++ b/src/lib/anime.ts @@ -16,7 +16,7 @@ export const cleanCache = (user: AniListAuthorisation, identity: UserIdentity) = }; export const updateMedia = (id: number, progress: number | undefined, callback: () => void) => { - fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(callback); + fetch(`/api/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(callback); }; export const totalEpisodes = (anime: Media) => { -- cgit v1.2.3