feat: api call route
This commit is contained in:
@@ -31,7 +31,7 @@ const ProxyForm: React.FC = () => {
|
|||||||
const handleSubmit = async (e: React.FormEvent) => {
|
const handleSubmit = async (e: React.FormEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('/api/proxy', proxyConfig);
|
const response = await axios.post('http://localhost:8080/proxy/config', proxyConfig);
|
||||||
alert(`Success!`);
|
alert(`Success!`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
alert('Error submitting proxy configuration');
|
alert('Error submitting proxy configuration');
|
||||||
|
|||||||
Reference in New Issue
Block a user