SpaceNinjaServer/src/controllers/dynamic/worldStateController.ts

13 lines
435 B
TypeScript
Raw Normal View History

2023-05-19 15:22:48 -03:00
import { RequestHandler } from "express";
import config from "@/config.json";
2023-05-19 15:22:48 -03:00
import worldState from "@/static/fixed_responses/worldState.json";
const worldStateController: RequestHandler = (_req, res) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
worldState.WorldSeed = config.worldSeed;
worldState.BuildLabel = config.buildLabel;
res.json(worldState);
2023-05-19 15:22:48 -03:00
};
export { worldStateController };