This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user