Created
January 10, 2020 19:10
-
-
Save ohenrique/4bdc86b4720247cd8d67f7aa63cd4316 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { 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