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

This commit is contained in:
Book Pauk
2022-09-25 17:27:40 +07:00
parent 7e5ea30579
commit e6d0c6e519
7 changed files with 117 additions and 63 deletions

View File

@@ -166,6 +166,16 @@ class Api {
return response;
}
async getBookLink(bookPath) {
const response = await this.request({action: 'get-book-link', bookPath});
if (response.error) {
throw new Error(response.error);
}
return response;
}
async getConfig() {
const response = await this.request({action: 'get-config'});