headless_lms_server::controllers::course_material::courses

Function get_public_course_pages

Source
async fn get_public_course_pages(
    course_id: Path<Uuid>,
    pool: Data<PgPool>,
) -> ControllerResult<Json<Vec<Page>>>
Expand description

GET /api/v0/course-material/courses/:course_id/pages - Returns a list of public pages on a course.

Since anyone can access this endpoint, any unlisted pages are omited from these results.