summary refs log tree commit diff
path: root/src/api/routes/policies/instance/domains.ts
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2023-01-15 19:46:41 -0700
committerGitHub <noreply@github.com>2023-01-16 13:46:41 +1100
commit8a23ac19f832f9fa4b97126ecae6e7553ce82c47 (patch)
tree1a6bb412091712ac652045d64341bd62a6b7279c /src/api/routes/policies/instance/domains.ts
parentFix some default value (diff)
downloadserver-8a23ac19f832f9fa4b97126ecae6e7553ce82c47.tar.xz
Move endpoints from ping -> policies/instance/domains (#933)
Diffstat (limited to '')
-rw-r--r--src/api/routes/policies/instance/domains.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/routes/policies/instance/domains.ts b/src/api/routes/policies/instance/domains.ts
index f22eac17..0acecb9a 100644
--- a/src/api/routes/policies/instance/domains.ts
+++ b/src/api/routes/policies/instance/domains.ts
@@ -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);