Fix chapter listing API and restore font size controls

This commit is contained in:
Ryderjj89
2025-09-13 15:59:07 -04:00
parent 1750b7c4ae
commit 9bebd76d7c
4 changed files with 46 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ export const getBooks = async (): Promise<BookData> => {
return response.data;
};
export const getBook = async (book: string): Promise<string> => {
export const getBook = async (book: string): Promise<{ chapters: string[] }> => {
const response = await api.get(`/books/${book}`);
return response.data;
};