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-07-19 22:45:58 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-19 22:45:58 +0200
commit247a213eea6e694cfb754d71ae4752ffb43ef6fe (patch)
tree0f854e991d1090e2806abba7bf391fd867ee2ada /src/routes/gateway.ts
parentMerge pull request #172 from fosscord/l10n_master (diff)
downloadserver-247a213eea6e694cfb754d71ae4752ffb43ef6fe.tar.xz
:bug: fix gateway route
Diffstat (limited to 'src/routes/gateway.ts')
-rw-r--r--src/routes/gateway.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts

index 7e8146df..f2bc5b34 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -5,7 +5,7 @@ const router = Router(); router.get("/", (req: Request, res: Response) => { const { endpoint } = Config.get().gateway; - res.send({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" }); + res.json({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" }); }); export default router;