feat: get proxy config

This commit is contained in:
karishmas6
2024-10-26 05:37:56 +05:30
parent e3a818680c
commit fd783c299d

View File

@@ -99,6 +99,18 @@ const ProxyForm: React.FC = () => {
});
};
// get proxy config
const fetchProxyConfig = async () => {
await getProxyConfig().then((response) => {
if (response.proxy_url) {
setIsProxyConfigured(true);
notify('success', 'Proxy configuration fetched successfully');
} else {
notify('error', 'Failed to fetch proxy configuration. Try again.');
}
});
};
return (
<FormContainer>
<Typography variant="h6" gutterBottom component="div" style={{ marginTop: '20px' }}>