mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
9 lines
274 B
TypeScript
9 lines
274 B
TypeScript
import config from "../config";
|
|
import FileSystem from "./storage/FileSystem";
|
|
import S3Storage from "./storage/S3";
|
|
import { StorageBase } from "./types";
|
|
|
|
const storage = config.STORAGE == "s3" ? new S3Storage() : new FileSystem();
|
|
|
|
export default storage as StorageBase;
|