diff --git a/backend/src/file/file.controller.ts b/backend/src/file/file.controller.ts index ce50dc8..e3bf0b3 100644 --- a/backend/src/file/file.controller.ts +++ b/backend/src/file/file.controller.ts @@ -45,7 +45,6 @@ export class FileController { @Get(":fileId/download") @UseGuards(ShareSecurityGuard) async getFileDownloadUrl( - @Res({ passthrough: true }) res: Response, @Param("shareId") shareId: string, @Param("fileId") fileId: string ) { @@ -57,16 +56,11 @@ export class FileController { @Get("zip/download") @UseGuards(ShareSecurityGuard) async getZipArchiveDownloadURL( - @Res({ passthrough: true }) res: Response, @Param("shareId") shareId: string, @Param("fileId") fileId: string ) { const url = this.fileService.getFileDownloadUrl(shareId, fileId); - res.set({ - "Content-Type": "application/zip", - }); - return { url }; }