{"size": 754, "ext": "js", "max_stars_repo_path": "src/scripts/globals/api-endpoint.js", "max_stars_repo_name": "Z4nR/ProVid-Capstone", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/scripts/globals/api-endpoint.js", "max_issues_repo_name": "Z4nR/ProVid-Capstone", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/scripts/globals/api-endpoint.js", "max_forks_repo_name": "Z4nR/ProVid-Capstone", "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": 47.125, "max_line_length": 114, "alphanum_fraction": 0.7440318302}
import CONFIG from './config'

const API_ENDPOINT = {
  COVID_DATA: `${CONFIG.COVID_ID_URL}`,
  COVID_PROV_DATA: `${CONFIG.COVID_ID_URL}provinsi`,
  CITY_RISK: `${CONFIG.CITY_RISK_URL}city_risk/raw`,
  VACCINE: `${CONFIG.VACCINE_URL}vaksin/`,
  HOSPITAL_PROV_DATA: `${CONFIG.HOSPITAL_URL}get-provinces`,
  HOSPITAL_CITY_IN_PROV: (province) => `${CONFIG.HOSPITAL_URL}get-cities?provinceid=${province}`,
  SEARCH_HOSPITAL: (prov, city) => `${CONFIG.HOSPITAL_URL}get-hospitals?provinceid=${prov}&cityid=${city}&type=1`,
  HOSPITAL_MAP: (hospitalId) => `${CONFIG.HOSPITAL_URL}get-hospital-map?hospitalid=${hospitalId}`,
  HOSPITAL_DETAIL: (hospitalId) => `${CONFIG.HOSPITAL_URL}get-bed-detail?hospitalid=${hospitalId}&type=1}`
}

export default API_ENDPOINT
