Adds a settings menu to change various options. Currently can only change config.json, changing postTutorialInventory.json for the purpose of standing caps planned.
11 lines
296 B
TypeScript
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 };
|