change download url

This commit is contained in:
smanylov
2026-02-12 16:21:10 +07:00
parent 4958d3ca57
commit 03920524d3
+2 -1
View File
@@ -474,7 +474,8 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
setIsFileLoading(true);
try {
const response = await fetch(`/api/download/${file.id}`);
/* const response = await fetch(`/api/download/${file.id}`); */
const response = await fetch(`/api/v1/files/download/${file.id}`);
if (!response.ok) {
throw new Error(`error: ${response.status}`);