This commit is contained in:
Mamalizz
2025-03-22 16:27:34 +03:30
44 changed files with 721 additions and 317 deletions
+6
View File
@@ -0,0 +1,6 @@
import fs from "fs/promises";
export default defineEventHandler(async (event) => {
const oldLogs = await fs.readFile(".logs/log.json", "utf-8");
return JSON.parse(oldLogs) as Record<any, any>[];
});