summary refs log tree commit diff
path: root/src/routes/gateway.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-15 16:15:52 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-15 16:15:52 -0500
commit67d85a9fc5993461afd741b361d9e820a6f0e735 (patch)
tree7fe44f21315eb218aecb15b0ec63f48691927d56 /src/routes/gateway.ts
parentMerge pull request #137 from 9qz/master (diff)
downloadserver-67d85a9fc5993461afd741b361d9e820a6f0e735.tar.xz
Config: Be able to configure the target_url
Diffstat (limited to '')
-rw-r--r--src/routes/gateway.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts

index cab685e2..9d34c999 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -1,9 +1,12 @@ import { Router } from "express"; +import Config from "../util/Config" const router = Router(); +const url = Config.get().server.root_url; + router.get("/", (req, res) => { - res.send({ url: "ws://localhost:3002" }); + res.send({ url: `ws://${url}:3002` }); }); export default router;