(method, url, data)
| 137 | }; |
| 138 | |
| 139 | const axiosRequest = async (method, url, data) => { |
| 140 | try { |
| 141 | return await axios[method](url, data); |
| 142 | } catch (error) { |
| 143 | console.log(`Error in axios ${method.toUpperCase()} request:`, url); |
| 144 | return error.response; |
| 145 | } |
| 146 | }; |
| 147 | |
| 148 | const axiosPost = async (url, data) => await axiosRequest("post", url, data); |
| 149 | const axiosGet = async (url, data) => await axiosRequest("get", url, data); |
no outgoing calls
no test coverage detected