From 89e0e2ebdcdd832dff9e4f645b80d8729260086a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 18 May 2021 22:05:25 +0200 Subject: [PATCH] :sparkles: load gateway url from config --- src/routes/gateway.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;