summary refs log tree commit diff
path: root/src/routes/gateway.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-21 18:18:58 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-21 18:18:58 -0500
commit05057b922a84c6b0331357867dfa50166320b318 (patch)
tree55b1ccb6e0ce0347a3f9e93932fa4acd81b5bf24 /src/routes/gateway.ts
parentMeta: Clean up the format file (diff)
downloadserver-05057b922a84c6b0331357867dfa50166320b318.tar.xz
Config: Refactor config method, so we have a new get all option, fix issues in configurations
Diffstat (limited to '')
-rw-r--r--src/routes/gateway.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts

index f92053e5..04ab1248 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -4,8 +4,7 @@ import * as Config from "../util/Config" const router = Router(); router.get("/", (req, res) => { - const generalConfig = Config.apiConfig.get('gateway', 'ws://localhost:3002') as Config.DefaultOptions; - const { gateway } = generalConfig; + const { gateway } = Config.apiConfig.getAll(); res.send({ url: gateway || "ws://localhost:3002" }); });