Работа над проектом

This commit is contained in:
Book Pauk
2022-08-21 21:10:56 +07:00
parent c7073635e3
commit 705fce73f7
7 changed files with 172 additions and 28 deletions

View File

@@ -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'});