feat(webui): change server config through UI #294

Merged
VampireKitten merged 7 commits from vamp-dev into main 2024-06-14 15:38:12 -07:00
Showing only changes of commit e14f0fede9 - Show all commits

View File

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