2023-05-19 15:22:48 -03:00
|
|
|
import { RequestHandler } from "express";
|
|
|
|
import worldState from "@/static/fixed_responses/worldState.json";
|
|
|
|
|
|
|
|
const worldStateController: RequestHandler = (_req, res) => {
|
2024-04-06 19:30:04 +03:00
|
|
|
const state = worldState;
|
|
|
|
state.Time = Math.round(Date.now() / 1000);
|
|
|
|
res.json(state);
|
2023-05-19 15:22:48 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
export { worldStateController };
|