From 475c198edf1f64d18a80bb8c912d743dcabe01f3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 13 Sep 2023 02:02:14 -0700 Subject: refactor(anilist): move to single path --- 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 3b3b178c..aafc2560 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(`/api/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