SpaceNinjaServer/src/controllers/dynamic/worldStateController.ts
Sainan 9f727789ca
All checks were successful
Build Docker image / docker (push) Successful in 43s
Build / build (push) Successful in 41s
chore: split worldState stuff into types & service (#1548)
Reviewed-on: #1548
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-04-10 12:54:48 -07:00

7 lines
253 B
TypeScript

import { RequestHandler } from "express";
import { getWorldState } from "@/src/services/worldStateService";
export const worldStateController: RequestHandler = (req, res) => {
res.json(getWorldState(req.query.buildLabel as string | undefined));
};