Skip to content

Commit

Permalink
fixed api route
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteri committed Oct 28, 2024
1 parent 6041c3c commit b25d973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const FileUpload: React.FC<FileUploadProps> = ({ uploadUrl }) => {
});

try {
const response = await fetch(uploadUrl + "/bulk_upload", {
const response = await fetch(uploadUrl, {
method: 'POST',
body: formData,
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Navbar() {
/>
{links}

<FileUpload uploadUrl={`${import.meta.env.VITE_API_URL}/api/v2/mcaps`}/>
<FileUpload uploadUrl={`${import.meta.env.VITE_API_URL}/api/v2/mcaps/bulk_upload`}/>

{/* Optionally render active link or other content here */}
<h3 className="hytechName">{hytechName}</h3>
Expand Down

0 comments on commit b25d973

Please sign in to comment.