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

const router = Router();

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

export default router;