feat: pass through config to client plugins

This commit is contained in:
cha0s 2021-01-19 10:38:21 -06:00
parent 4d82439b53
commit 73c18a4ad4

View File

@ -29,7 +29,15 @@ module.exports = async (latus, req) => {
.filter((config) => !!config)
.reduce((r, o) => ({...r, ...o}), {});
return {
...defaults,
...(
Object.fromEntries(
Object.keys(defaults)
.map((path) => [
path,
latus.get(path),
]),
)
),
...plugins,
};
};