Created
January 27, 2018 01:28
-
-
Save wwwmarcos/5c5860c801ed2dc20aece7943a6e8b2a to your computer and use it in GitHub Desktop.
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
// services/http.js | |
import axios from 'axios' | |
const configuredAxios = axios.create({ | |
baseURL: 'https://dogs.com/', | |
headers: {'X-Custom-Header': 'foobar'} | |
}) | |
export default configuredAxios |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment