diff options
-rw-r--r-- | src/routes/gateway.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts index 7e8146df..2ddd06d8 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts @@ -5,7 +5,8 @@ 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.setHeader('Content-Type', 'application/json'); + res.send(JSON.stringify({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" })); }); export default router; |