fix: toloka auth
This commit is contained in:
1 parent
335e26aa76
commit
1111712d2c
13 files changed
+613
-230
No files matched your search
@@ -6,8 +6,11 @@ import { YTSResponse } from './models';
|
||||
|
||||
export class YTS {
|
||||
private client: AxiosInstance;
|
||||
private host: string;
|
||||
|
||||
constructor() {
|
||||
this.host = process.env.YTS_HOST || 'https://yts.mx/api/v2/list_movies.json';
|
||||
|
||||
constructor(private host: string = process.env.YTS_HOST || 'https://yts.mx/api/v2/list_movies.json') {
|
||||
this.client = axios.create({
|
||||
baseURL: this.host
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user