Last active
July 10, 2020 06:17
-
-
Save charlintosh/7ca29b50f8284e3e7401bd4c894bd120 to your computer and use it in GitHub Desktop.
File that create an axios intance with the interceptors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {setupInterceptorsTo} from "./Interceptors"; | |
import axios from "axios"; | |
const specificAxios = setupInterceptorsTo(axios.createInstance()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment