update to /api/shortProjects

This commit is contained in:
Giovanni-Josserand 2025-09-03 14:41:46 +02:00
parent 910ac54302
commit 0835e756be

View File

@ -12,7 +12,7 @@ function Projects() {
useEffect(() => { useEffect(() => {
const fetchProjects = async () => { const fetchProjects = async () => {
try { try {
const response = await fetch('/api/projects/'); const response = await fetch('/api/shortProjects/');
if (!response.ok) { if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`); throw new Error(`Erreur HTTP: ${response.status}`);
} }
@ -41,7 +41,7 @@ function Projects() {
<SingleProject <SingleProject
image={project.image_name} image={project.image_name}
title={project.title} title={project.title}
description={project.description} description={project.short_description}
skills={project.skills} skills={project.skills}
id={project.id} id={project.id}
nbImage={project.nb_image} nbImage={project.nb_image}
@ -66,7 +66,7 @@ function Projects() {
<SingleProject <SingleProject
image={project.image_name} image={project.image_name}
title={project.title} title={project.title}
description={project.description} description={project.short_description}
skills={project.skills} skills={project.skills}
id={project.id} id={project.id}
nbImage={project.nb_image} nbImage={project.nb_image}