Работа над проектом
This commit is contained in:
@@ -156,6 +156,16 @@ class Api {
|
||||
return response;
|
||||
}
|
||||
|
||||
async getGenreTree() {
|
||||
const response = await this.request({action: 'get-genre-tree'});
|
||||
|
||||
if (response.error) {
|
||||
throw new Error(response.error);
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
async getConfig() {
|
||||
const response = await this.request({action: 'get-config'});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user