{"size": 192, "ext": "js", "max_stars_repo_path": "app/services/albums.js", "max_stars_repo_name": "wolox-training/ch-express", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/services/albums.js", "max_issues_repo_name": "wolox-training/ch-express", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/services/albums.js", "max_forks_repo_name": "wolox-training/ch-express", "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": 17.4545454545, "max_line_length": 46, "alphanum_fraction": 0.515625}
const { api } = require('./config');

exports.getAlbums = async () => {
  try {
    const { data } = await api.get('/albums');
    return data;
  } catch (e) {
    return { error: e };
  }
};
