chore: add api

This commit is contained in:
GyDi 2022-03-30 01:30:22 +08:00
parent 0a3402ff43
commit 9c0276f97b
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084

View File

@ -142,6 +142,14 @@ export async function getProviders() {
return response.providers as any; return response.providers as any;
} }
// todo: proxy providers health check
export async function getProviderHealthCheck(name: string) {
const instance = await getAxios();
return instance.get(
`/providers/proxies/${encodeURIComponent(name)}/healthcheck`
);
}
// Close specific connection // Close specific connection
export async function deleteConnection(id: string) { export async function deleteConnection(id: string) {
const instance = await getAxios(); const instance = await getAxios();