import { http } from '@/services/api/http'
import { buildUrl, endpoints } from '@/services/api/endpoints'

export const apiGetStudentSessions = (params) => http.get(endpoints.getSessionsList, { params })

export const apiShowStudentSession = (id) => http.get(buildUrl(endpoints.showSession, { id }))

export const apiSubmitStudentHomework = (homeworkId, payload) =>
  http.post(buildUrl(endpoints.submitHomework, { homeworkId }), payload)
