Updated movie page

This commit is contained in:
Aleksi Lassila
2023-08-05 14:53:47 +03:00
parent 7f86bb07e9
commit 4bee7c2413
12 changed files with 477 additions and 162 deletions

View File

@@ -260,6 +260,24 @@ export const getTmdbSeriesCredits = (tmdbId: number) =>
}
}).then((res) => res.data?.cast || []);
export const getTmdbMovieRecommendations = (tmdbId: number) =>
TmdbApiOpen.get('/3/movie/{movie_id}/recommendations', {
params: {
path: {
movie_id: tmdbId
}
}
}).then((res) => res.data?.results || []);
export const getTmdbMovieSimilar = (tmdbId: number) =>
TmdbApiOpen.get('/3/movie/{movie_id}/similar', {
params: {
path: {
movie_id: tmdbId
}
}
}).then((res) => res.data?.results || []);
// Deprecated hereon forward
/** @deprecated */