:tada: Call the ajax method using axios :christmas_tree:, axios header are set
......
<meta name="csrf-token" content="csrf-token-here">
......
$ npm i callclient --save
import in file import { callClient} from 'callclient';
callClient.get(url, params = {})
.then((response) => {
const values = response.data;
})
.catch(() => {
console.log('Hey Error aayo yar');
});
For the multipartAjax we can do like this
import { callMultiPartAjax } from 'callclient';
callMultiPartAjax.get(url, payload)
.then((response) => {
console.log('working cool');
})
.catch(() => {
console.log('Hey Error aayo yar');
});