summary refs log tree commit diff
path: root/src/routes/gateway.ts
blob: b6c8f49f1c8315bcd72ae4c099ca9d5d8a4fe706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { Router } from "express";
import Config from "../util/Config"

const router = Router();

router.get("/", (req, res) => {
	const { endpoint } = Config.getAll().gateway;
	res.send({ url: endpoint || "ws://localhost:3002" });
});

export default router;