Move file.json to data dir

This commit is contained in:
Dominic Zimmer 2025-05-03 18:01:29 +02:00
parent e32c976d87
commit 7438573c49

View File

@ -1,7 +1,7 @@
const { LowSync } = require('lowdb'); const { LowSync } = require('lowdb');
const { JSONFileSync } = require('lowdb/node'); const { JSONFileSync } = require('lowdb/node');
const db = new LowSync(new JSONFileSync('file.json'), {}) const db = new LowSync(new JSONFileSync('data/file.json'), {})
const { createServer } = require('node:http'); const { createServer } = require('node:http');
import * as http from 'node:http'; import * as http from 'node:http';