blob: 3120718e8af70f67557a72fe70e4cb9701e1b7a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { Config } from "@fosscord/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;
|