Move endpoints from ping -> policies/instance/domains (#933)

This commit is contained in:
Chris Chrome
2023-01-16 13:46:41 +11:00
committed by GitHub
parent 1d27e61029
commit 8a23ac19f8
2 changed files with 4 additions and 9 deletions
+3 -1
View File
@@ -5,7 +5,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",
@@ -13,6 +13,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);