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