From 841250767bc9dabefd79dfbdd78edbb8c2985112 Mon Sep 17 00:00:00 2001 From: zjy <3161362058@qq.com> Date: Wed, 11 Sep 2024 14:39:41 +0800 Subject: [PATCH] delete get env --- frontend/providers/applaunchpad/src/api/platform.ts | 3 --- .../applaunchpad/src/pages/api/platform/getEnv.ts | 13 ------------- 2 files changed, 16 deletions(-) delete mode 100644 frontend/providers/applaunchpad/src/pages/api/platform/getEnv.ts diff --git a/frontend/providers/applaunchpad/src/api/platform.ts b/frontend/providers/applaunchpad/src/api/platform.ts index 98f0b42dd72..a4817dd2858 100644 --- a/frontend/providers/applaunchpad/src/api/platform.ts +++ b/frontend/providers/applaunchpad/src/api/platform.ts @@ -16,9 +16,6 @@ export const getUserQuota = () => export const postAuthCname = (data: AuthCnamePrams) => POST('/api/platform/authCname', data); -// abandoned -export const getPlatformEnv = () => GET('/api/platform/getEnv'); - export const updateDesktopGuide = (payload: UpdateUserGuideParams) => POST('/api/guide/updateGuide', payload); diff --git a/frontend/providers/applaunchpad/src/pages/api/platform/getEnv.ts b/frontend/providers/applaunchpad/src/pages/api/platform/getEnv.ts deleted file mode 100644 index 27fd3c720a2..00000000000 --- a/frontend/providers/applaunchpad/src/pages/api/platform/getEnv.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { jsonRes } from '@/services/backend/response'; -import { ApiResp } from '@/services/kubernet'; -import { EnvResponse } from '@/types/index'; -import type { NextApiRequest, NextApiResponse } from 'next'; - -export default async function handler(req: NextApiRequest, res: NextApiResponse) { - jsonRes(res, { - data: { - domain: global.AppConfig.cloud.domain || 'cloud.sealos.io', - guideEnabled: global.AppConfig.common.guideEnabled - } - }); -}