refactor: réorganisation des routes d'images et optimisation du chargement des miniatures

This commit is contained in:
Julien Froidefond
2025-02-12 17:31:03 +01:00
parent 2a85abcb6d
commit b4d590e7e7
9 changed files with 475 additions and 164 deletions

View File

@@ -47,6 +47,10 @@ export class ImageService extends BaseApiService {
}
static getBookPageUrl(bookId: string, pageNumber: number): string {
return `/api/komga/books/${bookId}/pages/${pageNumber}`;
return `/api/komga/images/books/${bookId}/pages/${pageNumber}`;
}
static getBookPageThumbnailUrl(bookId: string, pageNumber: number): string {
return `/api/komga/images/books/${bookId}/pages/${pageNumber}/thumbnail`;
}
}