1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts
index cab685e2..d823354c 100644
--- a/src/routes/gateway.ts
+++ b/src/routes/gateway.ts
@@ -1,9 +1,11 @@
+import { Config } from "@fosscord/server-util";
import { Router } from "express";
const router = Router();
router.get("/", (req, res) => {
- res.send({ url: "ws://localhost:3002" });
+ const { endpoint } = Config.get().gateway;
+ res.send({ url: endpoint || "ws://localhost:3002" });
});
export default router;
|