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

// GET /student/homeworks — active homeworks for sessions in the student's
// enrolled terms; filterable by term_id / course_id / session_id.
export const apiGetStudentHomeworks = (params) =>
  http.get(endpoints.getStudentHomeworks, { params })

export const apiShowStudentHomework = (id) => http.get(buildUrl(endpoints.showHomework, { id }))
