tests: Add tests and some other changes
All checks were successful
Remote Deploy / deploy (push) Successful in 5s
All checks were successful
Remote Deploy / deploy (push) Successful in 5s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user