zero-ui/backend/utils/db.js
2023-10-06 22:11:40 +02:00

6 lines
183 B
JavaScript

import low from "lowdb";
import FileSync from "lowdb/adapters/FileSync.js";
const adapter = new FileSync(process.env.ZU_DATAPATH || "data/db.json");
export const db = low(adapter);