integrated trending endpoint with main TMDB class
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
DiscoverEndpoint,
|
||||
PeopleEndpoint,
|
||||
ReviewEndpoint,
|
||||
TrendingEndpoint,
|
||||
} from './endpoints';
|
||||
|
||||
export default class TMDB {
|
||||
@@ -67,4 +68,8 @@ export default class TMDB {
|
||||
get review(): ReviewEndpoint{
|
||||
return new ReviewEndpoint(this.accessToken);
|
||||
}
|
||||
|
||||
get trending(): TrendingEndpoint{
|
||||
return new TrendingEndpoint(this.accessToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user