From d7def41acc67402e94c9a17bb44d0738acf5233b Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 24 Oct 2024 16:07:39 +0800 Subject: [PATCH] feat: fetch debug key api --- web/service/plugins.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/service/plugins.ts b/web/service/plugins.ts index 08a7662896..55309ae944 100644 --- a/web/service/plugins.ts +++ b/web/service/plugins.ts @@ -8,6 +8,7 @@ import type { InstallPackageResponse, UpdateEndpointRequest, } from '@/app/components/plugins/types' +import type { DebugInfo as DebugInfoTypes } from '@/app/components/plugins/types' export const createEndpoint: Fetcher = ({ url, body }) => { // url = /workspaces/current/endpoints/create @@ -45,11 +46,6 @@ export const installPackageFromGitHub: Fetcher { - return Promise.resolve({ - key: 'f15b079b-bba2-4a62-abad-69119bcd3fa4', - host: 'localhost', - port: 5003, - }) + return get('/workspaces/current/plugin/debugging-key') }