headless_lms_server::controllers::course_material::courses

Function get_student_country

Source
async fn get_student_country(
    course_instance_id: Path<Uuid>,
    pool: Data<PgPool>,
    user: AuthUser,
) -> ControllerResult<Json<StudentCountry>>
Expand description

GET `/api/v0/{course_id}/student-country - Returns country of a student registered in a course.