fix: toloka auth

This commit is contained in:
ner committed 2024-10-26 15:11:23 +03:00
1 parent 335e26aa76
commit 1111712d2c
13 files changed
+613 -230

No files matched your search

+4 -1
View File
@@ -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
});