feat: initial steps towards an independent worldState #213

Merged
Sainan merged 2 commits from worldstate into main 2024-05-10 04:31:39 -07:00
2 changed files with 126 additions and 1288 deletions

View File

@ -1,10 +1,13 @@
import { RequestHandler } from "express";
import worldState from "@/static/fixed_responses/worldState.json";
import config from "@/config.json";
const worldStateController: RequestHandler = (_req, res) => {
const state = worldState;
state.Time = Math.round(Date.now() / 1000);
res.json(state);
res.json({
...worldState,
BuildLabel: config.buildLabel,
Time: Math.round(Date.now() / 1000)
});
};
export { worldStateController };

File diff suppressed because it is too large Load Diff