removed debug stuff

This commit is contained in:
Mamalizz
2025-09-22 14:16:35 +03:30
parent 31ef8b466d
commit 7b55681b0c
2 changed files with 0 additions and 15 deletions
-9
View File
@@ -1,9 +0,0 @@
export default defineNuxtRouteMiddleware(() => {
const config = useRuntimeConfig();
if (config.public.DEBUG === "true") {
return;
} else {
return navigateTo("/");
}
});
-6
View File
@@ -1,6 +0,0 @@
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>[];
});