Работа над проектом
This commit is contained in:
@@ -54,6 +54,16 @@ class Api {
|
||||
return response;
|
||||
}
|
||||
|
||||
async getBookList(authorId) {
|
||||
const response = await this.request({action: 'get-book-list', authorId});
|
||||
|
||||
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