getcvs
Version:
getcvs @manager-center
27 lines (18 loc) • 366 B
JavaScript
const axiosInstance = require('axios').create({
withCredentials: true
})
let get = async (api, headers) => {
try {
return await axiosInstance.get(api, {
headers
})
.then(response => {
return response.data;
})
} catch (e) {
throw e;
};
}
module.exports = {
get
}