From 05057b922a84c6b0331357867dfa50166320b318 Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Fri, 21 May 2021 18:18:58 -0500 Subject: Config: Refactor config method, so we have a new get all option, fix issues in configurations --- src/routes/gateway.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/routes/gateway.ts') 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" }); }); -- cgit 1.5.1