{"size": 897, "ext": "js", "max_stars_repo_path": "plugins/api.js", "max_stars_repo_name": "chewtoys/ayo-rek-admin", "max_stars_repo_stars_event_min_datetime": "2019-10-13T04:36:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-09T14:23:06.000Z", "max_issues_repo_path": "plugins/api.js", "max_issues_repo_name": "chewtoys/ayo-rek-admin", "max_issues_repo_issues_event_min_datetime": "2019-08-13T15:54:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-20T06:46:05.000Z", "max_forks_repo_path": "plugins/api.js", "max_forks_repo_name": "chewtoys/ayo-rek-admin", "max_forks_repo_forks_event_min_datetime": "2019-12-20T13:21:29.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-27T07:33:33.000Z"}
{"max_stars_count": 15, "max_issues_count": 5, "max_forks_count": 3, "avg_line_length": 29.9, "max_line_length": 59, "alphanum_fraction": 0.6889632107}
'use strict'

// const apiFactory = require('../utils/api')
import apiFactory from '~/utils/api'

export default ({ $http }, inject) => {
  const createApi = apiFactory($http)

  const apiList = {
    attendances: createApi('attendances'),
    departments: createApi('departments'),
    majors: createApi('majors'),
    groups: createApi('groups'),
    lecturerDescriptors: createApi('lecturer-descriptors'),
    lecturerImages: createApi('lecturer-images'),
    lecturers: createApi('lecturers'),
    presences: createApi('presences'),
    rooms: createApi('rooms'),
    schedules: createApi('schedules'),
    studentDescriptors: createApi('student-descriptors'),
    studentImages: createApi('student-images'),
    students: createApi('students'),
    studyPrograms: createApi('study-programs'),
    subjects: createApi('subjects'),
    users: createApi('users')
  }

  inject('api', apiList)
}
