Advertisement
crutch12

Untitled

Feb 4th, 2021
1,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // lib/axios/axios.ts
  2.  
  3. import axiosStatic from 'axios';
  4.  
  5. const axiosInstance = axiosStatic.create({
  6.   timeout: 60000,
  7. });
  8.  
  9. export { axiosInstance, axiosStatic };
  10.  
  11.  
  12. // lib/axios/index.ts
  13. export { paginationHandler, unauthorizedErrorHandler, withCredentials } from './interceptors';
  14. export { axiosInstance as axios, axiosStatic } from './axios';
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement