Skip to content

Instantly share code, notes, and snippets.

@nikasulo
Last active February 27, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikasulo/0b6fd52b0e73b6f5c284265ec97bad05 to your computer and use it in GitHub Desktop.
Save nikasulo/0b6fd52b0e73b6f5c284265ec97bad05 to your computer and use it in GitHub Desktop.
import axios from 'axios';
export default axios.create({
baseURL: `https://oluwadamilare-api.herokuapp.com`,
});
export const APIHelpers = {
authorizationHeaders: (auth_token) => (
{
Authorization: auth_token,
"Content-Type": "application/json",
}),
projectImagePath: () => "project/images",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment