headless_lms_server::controllers::course_material::courses

Function fetch_user_marketing_consent

Source
async fn fetch_user_marketing_consent(
    pool: Data<PgPool>,
    course_id: Path<Uuid>,
    user: AuthUser,
) -> ControllerResult<Json<Option<UserMarketingConsent>>>
Expand description

GET /api/v0/course-material/courses/:course_id/fetch-user-marketing-consent