update fetch url to match new api prefix

This commit is contained in:
2026-06-15 13:14:11 +02:00
parent e92c4227d8
commit f5441f038c
@@ -11,7 +11,7 @@ function ProjectDetailsPage() {
useEffect(() => { useEffect(() => {
const fetchProject = async () => { const fetchProject = async () => {
try { try {
const response = await fetch(`/api/longProjects/${id}`); const response = await fetch(`/api/projects/${id}`);
if (!response.ok) { if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`); throw new Error(`Erreur HTTP: ${response.status}`);
} }