update fetch url to match new api prefix
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user