From d36122b7bd7401efd771bb3dcf01193a55caf78e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 2 Dec 2024 16:02:20 +0000 Subject: [PATCH] Remove deprecated hosting endpoints --- packages/frontend-core/src/api/hosting.js | 19 ------------------- packages/frontend-core/src/api/index.ts | 2 -- 2 files changed, 21 deletions(-) delete mode 100644 packages/frontend-core/src/api/hosting.js diff --git a/packages/frontend-core/src/api/hosting.js b/packages/frontend-core/src/api/hosting.js deleted file mode 100644 index 8c398f9ae7..0000000000 --- a/packages/frontend-core/src/api/hosting.js +++ /dev/null @@ -1,19 +0,0 @@ -export const buildHostingEndpoints = API => ({ - /** - * Gets the hosting URLs of the environment. - */ - getHostingURLs: async () => { - return await API.get({ - url: "/api/hosting/urls", - }) - }, - - /** - * Gets the list of deployed apps. - */ - getDeployedApps: async () => { - return await API.get({ - url: "/api/hosting/apps", - }) - }, -}) diff --git a/packages/frontend-core/src/api/index.ts b/packages/frontend-core/src/api/index.ts index b7951ac227..398650f2cf 100644 --- a/packages/frontend-core/src/api/index.ts +++ b/packages/frontend-core/src/api/index.ts @@ -19,7 +19,6 @@ import { buildAutomationEndpoints } from "./automations" import { buildConfigEndpoints } from "./configs" import { buildDatasourceEndpoints } from "./datasources" import { buildFlagEndpoints } from "./flags" -import { buildHostingEndpoints } from "./hosting" import { buildLayoutEndpoints } from "./layouts" import { buildOtherEndpoints } from "./other" import { buildPermissionsEndpoints } from "./permissions" @@ -261,7 +260,6 @@ export const createAPIClient = (config: APIClientConfig = {}): APIClient => { ...buildConfigEndpoints(API), ...buildDatasourceEndpoints(API), ...buildFlagEndpoints(API), - ...buildHostingEndpoints(API), ...buildLayoutEndpoints(API), ...buildOtherEndpoints(API), ...buildPermissionsEndpoints(API),