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
parent d83e0004b7
commit 062104f64b

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);
}