1
0

chore: IDK
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

This commit is contained in:
2025-10-24 08:22:49 +02:00
parent 5fe6ac4a29
commit d885f4610e
3 changed files with 4 additions and 1 deletions

View File

@@ -3,10 +3,11 @@ import path from "path";
const app = express();
import fs from "fs/promises";
import { getCurrentInterval } from "./scheduleRules.js";
import bodyParser from "body-parser";
const PORT = process.env.PORT || 3000;
globalThis.File = class File {};
app.use(bodyParser.json());
app.get('/', async (_, res) => {
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "current.json"), "utf8");