feat: fetch debug key api
This commit is contained in:
parent
b6a560ce86
commit
d7def41acc
@ -8,6 +8,7 @@ import type {
|
|||||||
InstallPackageResponse,
|
InstallPackageResponse,
|
||||||
UpdateEndpointRequest,
|
UpdateEndpointRequest,
|
||||||
} from '@/app/components/plugins/types'
|
} from '@/app/components/plugins/types'
|
||||||
|
import type { DebugInfo as DebugInfoTypes } from '@/app/components/plugins/types'
|
||||||
|
|
||||||
export const createEndpoint: Fetcher<EndpointOperationResponse, { url: string; body: CreateEndpointRequest }> = ({ url, body }) => {
|
export const createEndpoint: Fetcher<EndpointOperationResponse, { url: string; body: CreateEndpointRequest }> = ({ url, body }) => {
|
||||||
// url = /workspaces/current/endpoints/create
|
// url = /workspaces/current/endpoints/create
|
||||||
@ -45,11 +46,6 @@ export const installPackageFromGitHub: Fetcher<InstallPackageResponse, { repo: s
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// export const fetchInstalledPluginsList: Fetcher<
|
|
||||||
export const fetchDebugKey = async () => {
|
export const fetchDebugKey = async () => {
|
||||||
return Promise.resolve({
|
return get<DebugInfoTypes>('/workspaces/current/plugin/debugging-key')
|
||||||
key: 'f15b079b-bba2-4a62-abad-69119bcd3fa4',
|
|
||||||
host: 'localhost',
|
|
||||||
port: 5003,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user