feat: support proxy provider update

This commit is contained in:
GyDi
2023-08-05 21:38:44 +08:00
parent 94757f0f0c
commit f1770711cb
4 changed files with 110 additions and 13 deletions

View File

@@ -169,6 +169,11 @@ export const providerHealthCheck = async (name: string) => {
);
};
export const providerUpdate = async (name: string) => {
const instance = await getAxios();
return instance.put(`/providers/proxies/${encodeURIComponent(name)}`);
};
export const getConnections = async () => {
const instance = await getAxios();
const result = await instance.get("/connections");