SpaceNinjaServer/src/controllers/custom/updateConfigDataController.ts
Sainan d36341c958 Fix config change on WebUI causing hot reload in dev mode
As a side effect, hot-reloading the config is now a feature of SNS, so it's not exclusive to dev mode.
2024-06-15 01:11:10 +02:00

10 lines
280 B
TypeScript

import { RequestHandler } from "express";
import { updateConfig } from "@/src/services/configService";
const updateConfigDataController: RequestHandler = async (req, res) => {
await updateConfig(req.body.toString());
res.end();
};
export { updateConfigDataController };