Skip to content

Instantly share code, notes, and snippets.

@LucasSouzaa
Forked from ohenrique/midway-service.js
Last active January 13, 2020 04:13
Show Gist options
  • Select an option

  • Save LucasSouzaa/d047a0e535e3dae1ce193076a455cac8 to your computer and use it in GitHub Desktop.

Select an option

Save LucasSouzaa/d047a0e535e3dae1ce193076a455cac8 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 overdraftDetails = async username => {
const headerInfo = { correlationId: "458639" };
return get(`${API_HOST}/users/${username}`, {
...authCredentials(),
...headerInfo
});
};
export default { overdraftDetails };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment