change localdb interface

This commit is contained in:
2023-10-23 22:09:31 +00:00
parent 384e38b760
commit 3146ae76a6
10 changed files with 121 additions and 40 deletions

View File

@@ -20,7 +20,7 @@ router.get("/config/:key", async (req, res) => {
}
const allowKeys = ["resources"];
if (allowKeys.includes(params.key)) {
const config = db.getGlobalConfig();
const config = db.getGlobal();
res.status(200).send(config[params.key]);
}
else {