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