MCPcopy Create free account
hub / github.com/axe-api/axe-api / axiosRequest

Function axiosRequest

packages/integrations/tests/helper.js:139–146  ·  view source on GitHub ↗
(method, url, data)

Source from the content-addressed store, hash-verified

137};
138
139const 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
148const axiosPost = async (url, data) => await axiosRequest("post", url, data);
149const axiosGet = async (url, data) => await axiosRequest("get", url, data);

Callers 5

axiosPostFunction · 0.85
axiosGetFunction · 0.85
axiosPutFunction · 0.85
axiosPatchFunction · 0.85
axiosDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected