SpaceNinjaServer/src/controllers/dynamic/worldStateController.ts
Master df214749c3
add version config (#2)
* update

* update

* update
2023-05-26 10:37:12 -03:00

13 lines
435 B
TypeScript

import { RequestHandler } from "express";
import config from "@/config.json";
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);
};
export { worldStateController };