Config: Redo config to be more straight to the point
This commit is contained in:
@@ -3,10 +3,9 @@ import Config from "../util/Config"
|
||||
|
||||
const router = Router();
|
||||
|
||||
const url = Config.get().server.root_url;
|
||||
|
||||
router.get("/", (req, res) => {
|
||||
res.send({ url: `ws://${url}:3002` });
|
||||
const { endpoint } = Config.getAll().gateway();
|
||||
res.send({ url: endpoint || "ws://localhost:3002" });
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user