Merge pull request #952 from fosscord/dev/endpoints-in-ping

Merge /dev/endpoints-in-ping to master
This commit is contained in:
Chris Chrome authored and GitHub committed 2023-01-18 12:14:05 -07:00
commit fbac5c7cd7
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -23,7 +23,7 @@ import { config } from "dotenv";
const router = Router();
router.get("/", route({}), async (req: Request, res: Response) => {
const { cdn, gateway } = Config.get();
const { cdn, gateway, api } = Config.get();
const IdentityForm = {
cdn: cdn.endpointPublic || process.env.CDN || "http://localhost:3001",
@@ -31,6 +31,8 @@ router.get("/", route({}), async (req: Request, res: Response) => {
gateway.endpointPublic ||
process.env.GATEWAY ||
"ws://localhost:3002",
defaultApiVersion: api.defaultVersion ?? 9,
apiEndpoint: api.endpointPublic ?? "/api",
};
res.json(IdentityForm);