feat: send proxyConfig
This commit is contained in:
@@ -2,7 +2,7 @@ import { default as axios } from "axios";
|
|||||||
|
|
||||||
export const sendProxyConfig = async (proxyConfig: {}): Promise<boolean> => {
|
export const sendProxyConfig = async (proxyConfig: {}): Promise<boolean> => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(`http://localhost:8080/proxy/config`);
|
const response = await axios.post(`http://localhost:8080/proxy/config`, proxyConfig);
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.data;
|
return response.data;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user