Vampire Kitten 4204c21780 Add Config Change To WebUI
Adds a settings menu to change various options.

Currently can only change config.json, changing postTutorialInventory.json for the purpose of standing caps planned.
2024-06-14 01:49:18 +02:00

11 lines
296 B
TypeScript

import { RequestHandler } from "express";
import path from "path";
const rootDir = path.join(__dirname, "../../..");
const getConfigData: RequestHandler = (_req, res) => {
const configFile = require(path.join(rootDir, "config.json"));
res.json(configFile);
};
export { getConfigData };