From b6404fdc2b0f257b1b64854e25559926ebbb2a63 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 30 Sep 2024 23:49:50 +0530 Subject: [PATCH] feat: api call route --- src/components/organisms/ProxyForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organisms/ProxyForm.tsx b/src/components/organisms/ProxyForm.tsx index ac368339..d45c5968 100644 --- a/src/components/organisms/ProxyForm.tsx +++ b/src/components/organisms/ProxyForm.tsx @@ -31,7 +31,7 @@ const ProxyForm: React.FC = () => { const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); try { - const response = await axios.post('/api/proxy', proxyConfig); + const response = await axios.post('http://localhost:8080/proxy/config', proxyConfig); alert(`Success!`); } catch (error) { alert('Error submitting proxy configuration');