Skip to content

Commit 29648b6

Browse files
committed
Fix API endpoint URL - remove /content suffix from file fetching
1 parent ce381b6 commit 29648b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DataFileSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function DataFileSelector({ onDataProcessed }: DataFilesSelectorProps) {
8383
setError('');
8484

8585
try {
86-
const response = await fetch(`/api/data-files/${encodeURIComponent(selectedFile)}/content`);
86+
const response = await fetch(`/api/data-files/${encodeURIComponent(selectedFile)}`);
8787

8888
if (!response.ok) {
8989
throw new Error(`Failed to load file: ${response.status} ${response.statusText}`);

0 commit comments

Comments
 (0)