FilesystemBackend: Remove getFileURL

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-02-27 11:38:50 +01:00 committed by David Mehren
parent 4ef3fd029d
commit 2c6af85f14
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -53,12 +53,6 @@ export class FilesystemBackend implements MediaBackend {
}
}
getFileURL(fileName: string, _: BackendData): Promise<string> {
const filePath = this.getFilePath(fileName);
// TODO: Add server address to url
return Promise.resolve('/' + filePath);
}
private getFilePath(fileName: string): string {
return join(this.uploadDirectory, fileName);
}