diff options
| author | Fuwn <[email protected]> | 2023-09-13 01:46:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-13 01:46:20 -0700 |
| commit | d6fe2c594a170553e9b88efc6338456dfd13391c (patch) | |
| tree | 86732b0cb44ea02a8a329780b120c63e4c561d58 /src/lib/anime.ts | |
| parent | fix(updates): fetch before parse (diff) | |
| download | due.moe-d6fe2c594a170553e9b88efc6338456dfd13391c.tar.xz due.moe-d6fe2c594a170553e9b88efc6338456dfd13391c.zip | |
refactor(anilist): move to api
Diffstat (limited to 'src/lib/anime.ts')
| -rw-r--r-- | src/lib/anime.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |