Updated
This commit is contained in:
@@ -2,5 +2,5 @@ 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>[];
|
||||
return JSON.parse(oldLogs) as Record<any, any>[];
|
||||
});
|
||||
Reference in New Issue
Block a user