feat: Front page now streaming & upcoming, styling improvements

This commit is contained in:
Aleksi Lassila
2024-05-11 23:42:41 +03:00
parent 21db1c82a2
commit 1f372ea576
6 changed files with 239 additions and 143 deletions

View File

@@ -46,7 +46,7 @@ export interface TmdbSeriesFull2 extends TmdbSeries2 {
}
export class TmdbApi implements Api<paths> {
getClient() {
static getClient() {
return createClient<paths>({
baseUrl: 'https://api.themoviedb.org',
headers: {
@@ -55,6 +55,10 @@ export class TmdbApi implements Api<paths> {
});
}
getClient() {
return TmdbApi.getClient();
}
// MOVIES
getTmdbMovie = async (tmdbId: number) => {