Refactor config for simpler use and advanced options in plugins

This commit is contained in:
TC
2020-12-03 18:16:37 +01:00
parent 1b54b19f3f
commit 8ab2da0482
11 changed files with 172 additions and 139 deletions

16
config/index.js Normal file
View File

@ -0,0 +1,16 @@
const plugins = require("./plugins");
const store = require("./store");
const set = (key, value) => {
store.set(key, value);
};
const get = (key) => {
return store.get(key);
};
module.exports = {
get,
set,
plugins,
};