From 8a23ac19f832f9fa4b97126ecae6e7553ce82c47 Mon Sep 17 00:00:00 2001 From: Chris Chrome Date: Sun, 15 Jan 2023 19:46:41 -0700 Subject: Move endpoints from ping -> policies/instance/domains (#933) --- src/api/routes/ping.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/api/routes/ping.ts') diff --git a/src/api/routes/ping.ts b/src/api/routes/ping.ts index 9bf8c243..3c1da2c3 100644 --- a/src/api/routes/ping.ts +++ b/src/api/routes/ping.ts @@ -5,7 +5,7 @@ import { Config } from "@fosscord/util"; const router = Router(); router.get("/", route({}), (req: Request, res: Response) => { - const { general, api, cdn, gateway } = Config.get(); + const { general } = Config.get(); res.send({ ping: "pong!", instance: { @@ -19,13 +19,6 @@ router.get("/", route({}), (req: Request, res: Response) => { frontPage: general.frontPage, tosPage: general.tosPage, - endpoints: { - defaultApiVersion: api.defaultVersion ?? 9, - apiEndpoint: api.endpointPublic ?? "/api", - cdnEndpoint: cdn.endpointPublic ?? "/", - gatewayEndpoint: - gateway.endpointPublic ?? "ws://localhost:3001", - }, }, }); }); -- cgit 1.5.1