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(() => {
const fetchProject = async () => {
try {
const response = await fetch(`/api/longProjects/${id}`);
const response = await fetch(`/api/projects/${id}`);
if (!response.ok) {
throw new Error(`Erreur HTTP: ${response.status}`);
}