diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts index cab685e2..5b6a87e7 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts @@ -1,9 +1,12 @@ import { Router } from "express"; +import Config from "../util/Config"; const router = Router(); router.get("/", (req, res) => { - res.send({ url: "ws://localhost:3002" }); + const endpoint = Config.getAll()?.gateway?.endpoint; + + res.send({ url: endpoint || "ws://localhost:3002" }); }); export default router;