mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
FilesystemBackend: Remove getFileURL
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
4ef3fd029d
commit
2c6af85f14
1 changed files with 0 additions and 6 deletions
|
@ -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 {
|
private getFilePath(fileName: string): string {
|
||||||
return join(this.uploadDirectory, fileName);
|
return join(this.uploadDirectory, fileName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue