headless_lms_server::controllers::main_frontend::certificates

Function get_cerficate_by_verification_id

Source
pub async fn get_cerficate_by_verification_id(
    certificate_verification_id: Path<String>,
    pool: Data<PgPool>,
    file_store: Data<dyn FileStore>,
    query: Query<CertificateQuery>,
    icu4x_blob: Data<Icu4xBlob>,
) -> ControllerResult<HttpResponse>
Expand description

GET /api/v0/main-frontend/certificates/{certificate_verification_id}

Fetches the user’s certificate using the verification id.

Response: the certificate as a png.