Archived
feat: pdf reader
This commit is contained in:
@@ -23,6 +23,13 @@ export const booksApi = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async getEbookFile(id: number): Promise<Blob> {
|
||||
const { data } = await api.get<Blob>(`/books/ebooks/${id}/file/`, {
|
||||
responseType: "blob",
|
||||
});
|
||||
return data;
|
||||
},
|
||||
|
||||
async getEpubFile(id: number): Promise<Blob> {
|
||||
const { data } = await api.get<Blob>(`/books/ebooks/${id}/file/`, {
|
||||
responseType: "blob",
|
||||
|
||||
Reference in New Issue
Block a user