summary refs log tree commit diff
path: root/src/routes/gateway.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/routes/gateway.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts

index b6c8f49f..f92053e5 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -1,11 +1,12 @@ import { Router } from "express"; -import Config from "../util/Config" +import * as Config from "../util/Config" const router = Router(); router.get("/", (req, res) => { - const { endpoint } = Config.getAll().gateway; - res.send({ url: endpoint || "ws://localhost:3002" }); + const generalConfig = Config.apiConfig.get('gateway', 'ws://localhost:3002') as Config.DefaultOptions; + const { gateway } = generalConfig; + res.send({ url: gateway || "ws://localhost:3002" }); }); export default router;