From b145ea17a49f34fd1d93dc8d103e2a742c5a06bb Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 30 Sep 2024 23:56:04 +0530 Subject: [PATCH] feat: make username & password optional --- src/api/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/proxy.ts b/src/api/proxy.ts index 6246345d..ebe87f95 100644 --- a/src/api/proxy.ts +++ b/src/api/proxy.ts @@ -1,6 +1,6 @@ import { default as axios } from "axios"; -export const sendProxyConfig = async (proxyConfig: { type: string, server: string, username: string, password: string }): Promise => { +export const sendProxyConfig = async (proxyConfig: { type: string, server: string, username?: string, password?: string }): Promise => { try { const response = await axios.post(`http://localhost:8080/proxy/config`, proxyConfig); if (response.status === 200) {