From 10f3ed7cb0eb8970f0a23c22451460354a3e0c96 Mon Sep 17 00:00:00 2001 From: G Date: Tue, 7 May 2024 17:58:57 +0000 Subject: [PATCH] commented Authorization for the moment. remove hard forced POST request in client option --- src/utils/axios-request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/axios-request.ts b/src/utils/axios-request.ts index c057003..c5d499c 100644 --- a/src/utils/axios-request.ts +++ b/src/utils/axios-request.ts @@ -7,7 +7,7 @@ const client = axios.create({baseURL : baseUrl}); const axiosRequest = async ({...options}) : Promise => { // console.log("base Url", baseUrl); - client.defaults.headers.common.Authorization = `Bearer ${""}`; + // client.defaults.headers.common.Authorization = `Bearer ${""}`; // client.defaults.headers.common['Content-Type'] = 'application/json'; // console.log("client default", client.defaults); // console.log("client datas", client.defaults.data); @@ -21,7 +21,7 @@ const axiosRequest = async ({...options}) : Promise => { }; try { - const response : AxiosResponse = await client({ ...options, method: "POST" }); + const response : AxiosResponse = await client({ ...options }); return onSuccess(response.data); } catch (error : any) { console.error("Axios Request Error :: ", error.response.data); -- libgit2 0.27.1