Created
October 3, 2019 20:33
-
-
Save djpeach/12dfe0ea8ceac8cc1493a4974dbcf945 to your computer and use it in GitHub Desktop.
Adding axios client
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 axios from 'axios' | |
const client = axios.create({ | |
baseURL: 'http://localhost:3000', | |
json: true | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment