summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-18 22:05:25 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-18 22:05:25 +0200
commit89e0e2ebdcdd832dff9e4f645b80d8729260086a (patch)
tree096ed92e62bdad704af419d3e5b3964fc7d47776
parentMerge pull request #138 from fosscord/l10n_master (diff)
downloadserver-89e0e2ebdcdd832dff9e4f645b80d8729260086a.tar.xz
:sparkles: load gateway url from config
-rw-r--r--src/routes/gateway.ts5
1 files changed, 4 insertions, 1 deletions
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;