mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 09:31:35 -04:00
Extend config with various options from 1.x
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
ce65f2c51a
commit
929795637a
13 changed files with 686 additions and 32 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
export enum BackendType {
|
||||
FILEYSTEM = 'filesystem',
|
||||
FILESYSTEM = 'filesystem',
|
||||
S3 = 's3',
|
||||
IMGUR = 'imgur',
|
||||
AZURE = 'azure',
|
||||
|
|
|
@ -122,13 +122,13 @@ export class MediaService {
|
|||
private chooseBackendType(): BackendType {
|
||||
switch (this.appConfig.media.backend.use) {
|
||||
case 'filesystem':
|
||||
return BackendType.FILEYSTEM;
|
||||
return BackendType.FILESYSTEM;
|
||||
}
|
||||
}
|
||||
|
||||
private getBackendFromType(type: BackendType): MediaBackend {
|
||||
switch (type) {
|
||||
case BackendType.FILEYSTEM:
|
||||
case BackendType.FILESYSTEM:
|
||||
return this.moduleRef.get(FilesystemBackend);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue