Skip to main content

create_preview_link

Function create_preview_link 

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

POST /api/v0/main-frontend/agent-changesets/{changeset_id}/preview-link/{page_id} - Mints a short-lived preview link for a page of the user’s changeset, so the review page can open the staged page as students would see it.