headless_lms_server::controllers::main_frontend::courses

Function teacher_archive_suspected_cheater

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

POST /api/v0/main-frontend/courses/${course.id}/suspected-cheaters/archive/:id - UPDATE is_archived to TRUE.