update to /api/shortProjects
This commit is contained in:
parent
910ac54302
commit
0835e756be
@ -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}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user