change download url
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user