{"size": 299, "ext": "js", "max_stars_repo_path": "src/api.js", "max_stars_repo_name": "KrallXZ/crypto-browser", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api.js", "max_issues_repo_name": "KrallXZ/crypto-browser", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api.js", "max_forks_repo_name": "KrallXZ/crypto-browser", "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": 19.9333333333, "max_line_length": 59, "alphanum_fraction": 0.5785953177}
import axios from 'axios'
axios.defaults.baseURL = 'https://api.coinmarketcap.com/v1'

export const api = {
  // loadItems() {
  //   return ["item1", "item2"]
  // },

  loadItems() {
    return axios
      .get('/ticker/')
      .then(response => response.data)
      .catch(error => error)
  },
}