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),