feat(webui): change server config through UI #294
@ -1,9 +1,7 @@
|
|||||||
import { RequestHandler } from "express";
|
import { RequestHandler } from "express";
|
||||||
import path from "path";
|
import configFile from "@/config.json";
|
||||||
const rootDir = path.join(__dirname, "../../..");
|
|
||||||
|
|
||||||
const getConfigData: RequestHandler = (_req, res) => {
|
const getConfigData: RequestHandler = (_req, res) => {
|
||||||
const configFile = require(path.join(rootDir, "config.json"));
|
|
||||||
res.json(configFile);
|
res.json(configFile);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user