From ed31d784a6c86ff11ff836b28df6173a15058c11 Mon Sep 17 00:00:00 2001 From: Ladebeze66 Date: Thu, 30 Jan 2025 16:42:13 +0000 Subject: [PATCH] glossairefin --- app/utils/fetchDataCompetences.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/utils/fetchDataCompetences.ts b/app/utils/fetchDataCompetences.ts index ae93a67..2cc6e77 100644 --- a/app/utils/fetchDataCompetences.ts +++ b/app/utils/fetchDataCompetences.ts @@ -30,12 +30,11 @@ export async function fetchDataCompetences(collection: string, slug: string) { } } -// ✅ Fonction pour récupérer tous les mots-clés du glossaire export async function fetchDataGlossaire() { try { - console.log("🛠️ Requête API Glossaire : http://localhost:1337/api/glossaires"); + console.log("🛠️ Requête API Glossaire : http://localhost:1337/api/glossaires?populate=images"); - const response = await fetch("http://localhost:1337/api/glossaires", { + const response = await fetch("http://localhost:1337/api/glossaires?populate=images", { cache: "no-store", }); @@ -52,3 +51,4 @@ export async function fetchDataGlossaire() { return []; } } +