feat(logger): streaming logs works server side not frontend for now

This commit is contained in:
2025-03-20 14:06:53 -05:00
parent 0bd217c727
commit e833c48cc8
3 changed files with 66 additions and 1 deletions

View File

@@ -7,10 +7,11 @@ import {settings} from "../../../database/schema/settings.js";
import {logCleanup} from "./controller/logCleanup.js";
import createNewLog from "./routes/createLog.js";
import getLogs from "./routes/getLogs.js";
import stream from "./routes/streamLogs.js";
const app = new OpenAPIHono();
const routes = [clearLog, createNewLog, getLogs] as const;
const routes = [clearLog, createNewLog, getLogs, stream] as const;
const setting = await db.select().from(settings);
const appRoutes = routes.forEach((route) => {