Skip to content

Instantly share code, notes, and snippets.

@djpeach
Created October 3, 2019 20:33
Show Gist options
  • Save djpeach/12dfe0ea8ceac8cc1493a4974dbcf945 to your computer and use it in GitHub Desktop.
Save djpeach/12dfe0ea8ceac8cc1493a4974dbcf945 to your computer and use it in GitHub Desktop.
Adding axios client
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