From 74adb7c19f39bc0f8315f7bfae6361d1b6e26861 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sun, 16 Jan 2022 15:16:24 +0100 Subject: [PATCH] Use new API route (fix #10) --- components/ProjectModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {