feat: auto close connection when proxy changed

This commit is contained in:
GyDi
2022-11-10 01:27:05 +08:00
parent aa23ed892b
commit 32095daf90
9 changed files with 175 additions and 3 deletions

View File

@@ -176,6 +176,12 @@ export async function providerHealthCheck(name: string) {
);
}
export async function getConnections() {
const instance = await getAxios();
const result = await instance.get("/connections");
return result as any as ApiType.Connections;
}
// Close specific connection
export async function deleteConnection(id: string) {
const instance = await getAxios();