1
0

tests: Add tests and some other changes
All checks were successful
Remote Deploy / deploy (push) Successful in 5s

This commit is contained in:
2025-12-18 19:43:48 +01:00
parent 9e844ab6e6
commit e4eadc2b1a
4 changed files with 362 additions and 7 deletions

View File

@@ -20,6 +20,15 @@ app.get('/', async (_, res) => {
res.json(data);
});
app.get('/versioned/v1', async (_, res) => {
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "current.json"), "utf8");
const data = JSON.parse(dataStr);
data["status"]["currentUpdateSchedule"] = getCurrentInterval();
res.json(data);
});
app.get("/status", async (_, res) => {
const dataStr = await fs.readFile(path.resolve("./volume/customState.json"), {encoding: "utf8"});
const data = JSON.parse(dataStr);