1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 18:21:36 +02:00

🐛 fix gateway route

This commit is contained in:
Flam3rboy 2021-07-19 22:45:58 +02:00
parent 05cff32522
commit 247a213eea

View File

@ -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;