mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 08:48:42 +08:00
chore: add api
This commit is contained in:
1 parent
3afdf9571e
commit
17b7265a9a
1 file changed
+8
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user