Need to also add in companies getter

This commit is contained in:
Benjamin Lei
2023-08-30 19:43:45 -07:00
parent f605edf354
commit b11187c093

View File

@@ -18,6 +18,7 @@ import {
TvSeasonsEndpoint,
TvEpisodesEndpoint,
} from './endpoints';
import { CompaniesEndpoint } from './endpoints/companies';
export class TMDB {
private readonly accessToken: string;
@@ -46,6 +47,10 @@ export class TMDB {
return new CreditsEndpoint(this.accessToken);
}
get companies(): CompaniesEndpoint {
return new CompaniesEndpoint(this.accessToken);
}
get search(): SearchEndpoint {
return new SearchEndpoint(this.accessToken);
}