{"size": 222, "ext": "js", "max_stars_repo_path": "_/section-6/4. enhance-your-store/prev/app/src/api.service.js", "max_stars_repo_name": "paullewallencom/redux-978-1-7895-3583-9", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_/section-6/4. enhance-your-store/prev/app/src/api.service.js", "max_issues_repo_name": "paullewallencom/redux-978-1-7895-3583-9", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_/section-6/4. enhance-your-store/prev/app/src/api.service.js", "max_forks_repo_name": "paullewallencom/redux-978-1-7895-3583-9", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.7142857143, "max_line_length": 68, "alphanum_fraction": 0.6171171171}
const BASE_URL = '//0.0.0.0:5000';

export default (entity, options) =>
  fetch(`${BASE_URL}/${entity}`, options)
    .then(res => (res.ok ? res.json() : Promise.reject(res.status)))
    .catch(err => console.error(err));
