feat: api call route

This commit is contained in:
karishmas6
2024-09-30 23:49:50 +05:30
parent 4076237764
commit b6404fdc2b

View File

@@ -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');