Function headless_lms_server::controllers::course_material::courses::get_current_course_instance
source · async fn get_current_course_instance(
pool: Data<PgPool>,
course_id: Path<Uuid>,
user: Option<AuthUser>
) -> ControllerResult<Json<Option<CourseInstance>>>
Expand description
GET /api/v0/course-material/courses/:course_id/current-instance
- Returns the instance of a course for the current user, if there is one.