{"size": 370, "ext": "js", "max_stars_repo_path": "dapp/src/services/api/business.js", "max_stars_repo_name": "leonprou/CLN-community-app", "max_stars_repo_stars_event_min_datetime": "2018-05-21T18:36:21.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-20T03:15:31.000Z", "max_issues_repo_path": "dapp/src/services/api/business.js", "max_issues_repo_name": "leonprou/CLN-community-app", "max_issues_repo_issues_event_min_datetime": "2018-08-14T09:19:57.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T03:36:52.000Z", "max_forks_repo_path": "dapp/src/services/api/business.js", "max_forks_repo_name": "leonprou/CLN-community-app", "max_forks_repo_forks_event_min_datetime": "2018-07-12T12:29:41.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-07T10:59:04.000Z"}
{"max_stars_count": 3, "max_issues_count": 27, "max_forks_count": 3, "avg_line_length": 37.0, "max_line_length": 66, "alphanum_fraction": 0.6945945946}
import request from 'superagent'

export const fetchBusinesses = (apiRoot, { listAddress, page }) =>
  request.get(`${apiRoot}/businesses/${listAddress}?page=${page}`)
    .then(response => response.body)

export const fetchBusiness = (apiRoot, { listAddress, hash }) =>
  request.get(`${apiRoot}/businesses/${listAddress}/${hash}`)
    .then(response => response.body)
