Changed require to Import
Hopefully to fix the automatic build error.
This commit is contained in:
parent
4204c21780
commit
e14f0fede9
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user