change download url
This commit is contained in:
@@ -474,7 +474,8 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
|
|||||||
setIsFileLoading(true);
|
setIsFileLoading(true);
|
||||||
|
|
||||||
try {
|
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) {
|
if (!response.ok) {
|
||||||
throw new Error(`error: ${response.status}`);
|
throw new Error(`error: ${response.status}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user