async fn get_exercise(
    pool: Data<PgPool>,
    exercise_id: Path<Uuid>,
    user: Option<AuthUser>
) -> ControllerResult<Json<CourseMaterialExercise>>
Expand description

GET /api/v0/course-material/exercises/:exercise_id - Get exercise by id. Includes relevant context so that doing the exercise is possible based on the response.

This endpoint does not expose exercise’s private spec because it would expose the correct answers to the user.