{"size": 483, "ext": "js", "max_stars_repo_path": "reactFrontend/src/api/functions.js", "max_stars_repo_name": "hafey1/rtiExcercise01", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "reactFrontend/src/api/functions.js", "max_issues_repo_name": "hafey1/rtiExcercise01", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "reactFrontend/src/api/functions.js", "max_forks_repo_name": "hafey1/rtiExcercise01", "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": 20.125, "max_line_length": 75, "alphanum_fraction": 0.5962732919}
import axios from "axios";
import { FLASK_HOME, CSV_ENDPOINT, SUMMARY_ENDPOINT } from "../constants";

//create calls to the backend to retrive info

const FLASK_URL = FLASK_HOME;

const apiClass = {
  getCleanCSVData: pageNum => {
    return axios({
      method: "get",
      url: FLASK_URL + CSV_ENDPOINT
    });
  },
  getSummary: () => {
    return axios({
      method: "get",
      url: FLASK_URL + SUMMARY_ENDPOINT
    });
  }
};

export { apiClass };
