Need to also add in companies getter
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
|||||||
TvSeasonsEndpoint,
|
TvSeasonsEndpoint,
|
||||||
TvEpisodesEndpoint,
|
TvEpisodesEndpoint,
|
||||||
} from './endpoints';
|
} from './endpoints';
|
||||||
|
import { CompaniesEndpoint } from './endpoints/companies';
|
||||||
|
|
||||||
export class TMDB {
|
export class TMDB {
|
||||||
private readonly accessToken: string;
|
private readonly accessToken: string;
|
||||||
@@ -46,6 +47,10 @@ export class TMDB {
|
|||||||
return new CreditsEndpoint(this.accessToken);
|
return new CreditsEndpoint(this.accessToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get companies(): CompaniesEndpoint {
|
||||||
|
return new CompaniesEndpoint(this.accessToken);
|
||||||
|
}
|
||||||
|
|
||||||
get search(): SearchEndpoint {
|
get search(): SearchEndpoint {
|
||||||
return new SearchEndpoint(this.accessToken);
|
return new SearchEndpoint(this.accessToken);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user