summary refs log tree commit diff
path: root/src/util/Storage.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:16:45 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 20:16:45 +0200
commit512375f6ed6f7fe895f0ebbb9494e7d2feb7a525 (patch)
treed2c68ddd310a7b50a46979671566e5ae6c1bf04c /src/util/Storage.ts
parentMerge branch 'cdn' (diff)
downloadserver-512375f6ed6f7fe895f0ebbb9494e7d2feb7a525.tar.xz
:sparkles: cdn
Diffstat (limited to 'src/util/Storage.ts')
-rw-r--r--src/util/Storage.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util/Storage.ts b/src/util/Storage.ts
deleted file mode 100644

index f8b09e71..00000000 --- a/src/util/Storage.ts +++ /dev/null
@@ -1,15 +0,0 @@ -import { FileStorage } from "./FileStorage"; - -export interface Storage { - set(path: string, data: Buffer): Promise<void>; - get(path: string): Promise<Buffer | null>; - delete(path: string): Promise<void>; -} - -var storage: Storage; - -if (process.env.STORAGE_PROVIDER === "file") { - storage = new FileStorage(); -} - -export { storage };