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

const router = Router();

router.get("/", (req: Request, res: Response) => {
	const { endpoint } = Config.get().gateway;
	res.json({ url: endpoint || process.env.GATEWAY || "ws://localhost:3002" });
});

export default router;