Skip to content

Instantly share code, notes, and snippets.

@rafaelaugustos
Created September 3, 2020 01:48
Show Gist options
  • Save rafaelaugustos/eb63379bbb9b42394e37a7f54f26c6aa to your computer and use it in GitHub Desktop.
Save rafaelaugustos/eb63379bbb9b42394e37a7f54f26c6aa to your computer and use it in GitHub Desktop.
import axios from 'axios'
import config from './endpoint'
const HTTPClient = ms => axios.create(config[ms])
export default HTTPClient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment