mirror of
https://github.com/Ladebeze66/devsite.git
synced 2025-12-13 12:46:49 +01:00
glossairefin
This commit is contained in:
parent
79abdf987e
commit
ed31d784a6
@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user