test debug error 404

This commit is contained in:
Giovanni-Josserand 2025-08-31 21:35:58 +02:00
parent 17f3b1aa1c
commit 725ab47055
3 changed files with 4 additions and 4 deletions

View File

@ -10,14 +10,14 @@ function Experiences() {
useEffect(() => {
const fetchExperiencesAndTasks = async () => {
try {
let response = await fetch('/api/experiences');
let response = await fetch('/api/experiences/');
if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`);
}
let data = await response.json();
setExperiences(data.data);
response = await fetch('/api/experienceTasks');
response = await fetch('/api/experienceTasks/');
if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`);
}

View File

@ -8,7 +8,7 @@ function Projects() {
useEffect(() => {
const fetchProjects = async () => {
try {
const response = await fetch('/api/projects');
const response = await fetch('/api/projects/');
if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`);
}

View File

@ -9,7 +9,7 @@ function Skills() {
useEffect(() => {
const fetchSkills = async () => {
try {
const response = await fetch('/api/skills');
const response = await fetch('/api/skills/');
if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`);
}