{"size": 284, "ext": "js", "max_stars_repo_path": "src/services/userService.js", "max_stars_repo_name": "DavidStinson/party-overflow", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/userService.js", "max_issues_repo_name": "DavidStinson/party-overflow", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/userService.js", "max_forks_repo_name": "DavidStinson/party-overflow", "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": 18.9333333333, "max_line_length": 74, "alphanum_fraction": 0.5457746479}
const BASE_URL = '/api/users/'

const getTopUsers = async () => {
    try {
        const res = await fetch(`${BASE_URL}/top-users`, { mode: "cors" })
        const data = await res.json()
        return data
    } catch (error) {
        throw error
    }
}

export {
  getTopUsers
}