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

const router = Router();

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

export default router;