1 files changed, 8 insertions, 6 deletions
diff --git a/api/src/routes/policies/instance/domains.ts b/api/src/routes/policies/instance/domains.ts
index b68763cc..20cd07ba 100644
--- a/api/src/routes/policies/instance/domains.ts
+++ b/api/src/routes/policies/instance/domains.ts
@@ -3,14 +3,16 @@ import { route } from "@fosscord/api";
import { Config } from "@fosscord/util";
import { config } from "dotenv"
const router = Router();
-const { cdn } = Config.get();
-
-const IdentityForm = {
- cdn: cdn.endpointPublic || process.env.CDN || "http://localhost:3001",
-}
router.get("/",route({}), async (req: Request, res: Response) => {
- res.json(IdentityForm)
+ const { cdn, gateway } = Config.get();
+
+ const IdentityForm = {
+ cdn: cdn.endpointPublic || process.env.CDN || "http://localhost:3001",
+ gateway: gateway.endpointPublic || process.env.GATEWAY || "ws://localhost:3002"
+ };
+
+ res.json(IdentityForm);
});
export default router;
|