fix: correction des URLs des images et nettoyage du code

This commit is contained in:
Julien Froidefond
2025-02-12 10:13:16 +01:00
parent c9cd081921
commit 6cec8da8e2
3 changed files with 21 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ export class ImageService extends BaseApiService {
static async getImage(path: string): Promise<ImageResponse> {
try {
const config = await this.getKomgaConfig();
const url = this.buildUrl(config, path);
const url = `${config.serverUrl}${path}`;
const headers = this.getAuthHeaders(config);
// Ajout des headers pour accepter les images