Add default file viewer
This commit is contained in:
@ -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`;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user