chore; lint

This commit is contained in:
karishmas6
2024-10-26 06:20:40 +05:30
parent dcfe441f85
commit 2e5436a3e4

View File

@@ -40,4 +40,18 @@ export const testProxyConfig = async (): Promise<{ success: boolean }> => {
console.log(error);
return { success: false };
}
}
export const deleteProxyConfig = async (): Promise<boolean> => {
try {
const response = await axios.delete(`http://localhost:8080/proxy/config`);
if (response.status === 200) {
return response.data;
} else {
throw new Error(`Failed to delete proxy configuration. Try again.`);
}
} catch (error: any) {
console.log(error);
return false;
}
}