mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
adding storage mode
This commit is contained in:
parent
ffcee4e802
commit
c99ab6c3ec
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -13,6 +13,7 @@ app.use(helmet());
|
||||||
|
|
||||||
const s3 = require("./engines/s3.engine");
|
const s3 = require("./engines/s3.engine");
|
||||||
const local = require("./engines/local.engine");
|
const local = require("./engines/local.engine");
|
||||||
|
const storageMode = process.env.STORAGE_MODE || "local";
|
||||||
|
|
||||||
app.get("/", async (req, res) => {
|
app.get("/", async (req, res) => {
|
||||||
let storageEngine;
|
let storageEngine;
|
||||||
|
|
Loading…
Reference in a new issue