storageFactory.js 234 Bytes
Newer Older
Athanasios's avatar
Athanasios committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const JSONStorage = require("./storage");

const createStorage = (params) => {

  switch (params.type) {

    case "JSON": {

      return new JSONStorage(params.path);

    }

  }

}

module.exports = {createStorage};