From b25d9730e2b28905a20a8e33bc042c923575c38c Mon Sep 17 00:00:00 2001 From: Christine <132790780+aesteri@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:15:15 +0900 Subject: [PATCH] fixed api route --- src/components/FileUpload.tsx | 2 +- src/components/Navbar.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FileUpload.tsx b/src/components/FileUpload.tsx index 48bd6a5..376ba60 100644 --- a/src/components/FileUpload.tsx +++ b/src/components/FileUpload.tsx @@ -33,7 +33,7 @@ const FileUpload: React.FC = ({ uploadUrl }) => { }); try { - const response = await fetch(uploadUrl + "/bulk_upload", { + const response = await fetch(uploadUrl, { method: 'POST', body: formData, }); diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 60a9bbd..54d8346 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -27,7 +27,7 @@ export default function Navbar() { /> {links} - + {/* Optionally render active link or other content here */}

{hytechName}