finished movie endpoints, addded configuration and utility method to construct full image url
This commit is contained in:
13
src/endpoints/configuration.ts
Normal file
13
src/endpoints/configuration.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { BaseEndpoint } from './base';
|
||||
import { Configuration } from '../types/configuration';
|
||||
|
||||
export class ConfigurationEndpoint extends BaseEndpoint {
|
||||
constructor(protected readonly accessToken: string) {
|
||||
super(accessToken);
|
||||
}
|
||||
|
||||
async getCurrent(): Promise<Configuration> {
|
||||
return await this.api.get<Configuration>(`/configuration`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user