Add default file viewer

This commit is contained in:
2025-05-01 18:59:23 +02:00
parent bce17bc9b4
commit 40cf0c16df
2 changed files with 62 additions and 3 deletions

View File

@ -37,4 +37,11 @@ export class FileApi {
})
).data;
}
/**
* Get a file download URL
*/
static DownloadURL(file: UploadedFile): string {
return APIClient.backendURL() + `/file/${file.id}/download`;
}
}