From a95d7b7ce5b6712f1eaec10ed9de6d39d72de3a7 Mon Sep 17 00:00:00 2001 From: Diego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com> Date: Wed, 21 Jul 2021 14:47:07 -0500 Subject: [Fix] All messages should have edited_timestamp even if null --- 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 2ddd06d8..f2bc5b34 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts @@ -5,8 +5,7 @@ const router = Router(); router.get("/", (req: Request, res: Response) => { const { endpoint } = Config.get().gateway; - res.setHeader('Content-Type', 'application/json'); - res.send(JSON.stringify({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" })); + res.json({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" }); }); export default router; -- cgit 1.5.1