mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
🐛 fix gateway route
This commit is contained in:
parent
05cff32522
commit
247a213eea
@ -5,7 +5,7 @@ const router = Router();
|
|||||||
|
|
||||||
router.get("/", (req: Request, res: Response) => {
|
router.get("/", (req: Request, res: Response) => {
|
||||||
const { endpoint } = Config.get().gateway;
|
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;
|
export default router;
|
||||||
|
Loading…
Reference in New Issue
Block a user