diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index c27bfdc..f8ca0c5 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -23,7 +23,7 @@ const ProjectModal: NextPage = ({ project, visible, setVisible }) => if (project && project !== "") { // TODO // set Spinner - fetch(`/api/get_project?projectName=${project}`).then((res) => { + fetch(`/api/projects/${project}`).then((res) => { if (res.status === 404) setProjectData(projectNotFoundHtml); if (res.status !== 200) setProjectData(projectServerErrorHtml); res.text().then(data => {