ソースを参照

fix download file route

Olivier Massot 5 ヶ月 前
コミット
483aeb4abf
1 ファイル変更1 行追加1 行削除
  1. 1 1
      composables/utils/useDownloadFile.ts

+ 1 - 1
composables/utils/useDownloadFile.ts

@@ -5,7 +5,7 @@ import type File from '~/models/Core/File'
 export const useDownloadFile = async (file: File) => {
   const { apiRequestService } = useAp2iRequestService()
 
-  const downloadUrl = `api/download/${file.id}`
+  const downloadUrl = `api/file/download/${file.id}`
 
   const response = await apiRequestService.get(downloadUrl)