summary refs log tree commit diff
path: root/src/routes/gateway.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-24 20:47:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-24 20:47:06 +0200
commit8f87546aeb5c14539601ab25c0e07630a5e5043a (patch)
treec9d5ca2d0c307096d5a4e44768c66b4d8cf05ec4 /src/routes/gateway.ts
parentMerge pull request #147 from DiegoMagdaleno/master (diff)
downloadserver-8f87546aeb5c14539601ab25c0e07630a5e5043a.tar.xz
:sparkles: use new config
Diffstat (limited to '')
-rw-r--r--src/routes/gateway.ts6
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;