{"size": 613, "ext": "js", "max_stars_repo_path": "src/helpers/api.js", "max_stars_repo_name": "yocosaka/Tracking-App-with-React-Redux", "max_stars_repo_stars_event_min_datetime": "2021-05-31T14:51:08.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-20T22:17:49.000Z", "max_issues_repo_path": "src/helpers/api.js", "max_issues_repo_name": "yocosaka/Tracking-App-with-React", "max_issues_repo_issues_event_min_datetime": "2021-05-13T07:46:04.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-20T05:19:46.000Z", "max_forks_repo_path": "src/helpers/api.js", "max_forks_repo_name": "yocosaka/Tracking-App-with-React", "max_forks_repo_forks_event_min_datetime": "2021-08-19T12:48:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-19T12:48:33.000Z"}
{"max_stars_count": 5, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 32.2631578947, "max_line_length": 80, "alphanum_fraction": 0.7112561175}
import axios from 'axios';
import originDecode from 'jwt-decode';
import originMoment from 'moment';
import baseUrl from './baseUrl';
import authHeaders from './authHeaders';

export const sendRequestWithData = async (method, path, data) => {
  const result = await axios[method](`${baseUrl}/${path}`, data, authHeaders());
  return result;
};

export const sendRequestWithoutData = async (method, path) => {
  const result = await axios[method](`${baseUrl}/${path}`, authHeaders());
  return result;
};

export const moment = (param) => originMoment(param);
export const decode = (param) => originDecode(param);
