Skip to content

Instantly share code, notes, and snippets.

@ohenrique
Created January 10, 2020 19:10
Show Gist options
  • Select an option

  • Save ohenrique/4bdc86b4720247cd8d67f7aa63cd4316 to your computer and use it in GitHub Desktop.

Select an option

Save ohenrique/4bdc86b4720247cd8d67f7aa63cd4316 to your computer and use it in GitHub Desktop.
import { get } from 'axios';
import { authCredentials } from './auth-service';
const API_HOST = "https://fake-api.com"
const overdraftDetalhes = async (username) => {
console.log(username)
let headerInfo = { 'correlationId': '458639' }
return await get(`${API_HOST}/users/` + username, {
...authCredentials(),
...headerInfo
})
}
export { overdraftDetalhes };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment