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

const router = Router();

router.get("/", (req, res) => {
	const endpoint = Config.getAll()?.gateway?.endpoint;

	res.send({ url: endpoint || "ws://localhost:3002" });
});

export default router;