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

index 5b6a87e7..8d0eb06f 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -1,12 +1,11 @@ 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?.endpoint; - - res.send({ url: endpoint || "ws://localhost:3002" }); + const { gateway } = Config.apiConfig.getAll() as Config.DefaultOptions; + res.send({ url: gateway || "ws://localhost:3002" }); }); export default router;