summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/gateway.ts5
-rw-r--r--src/util/Config.ts6
2 files changed, 2 insertions, 9 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts

index 9d34c999..4c7ff450 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -3,10 +3,9 @@ import Config from "../util/Config" const router = Router(); -const url = Config.get().server.root_url; - router.get("/", (req, res) => { - res.send({ url: `ws://${url}:3002` }); + const { endpoint } = Config.getAll().gateway(); + res.send({ url: endpoint || "ws://localhost:3002" }); }); export default router; diff --git a/src/util/Config.ts b/src/util/Config.ts
index e52cd2f7..f1f0f458 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -21,9 +21,6 @@ export interface RateLimitOptions { } export interface DefaultOptions { - server: { - root_url: string; - }; general: { instance_id: string; }; @@ -111,9 +108,6 @@ export interface DefaultOptions { } export const DefaultOptions: DefaultOptions = { - server: { - root_url: "localhost" // we are localhost unless the oposite is specified - }, general: { instance_id: Snowflake.generate(), },