Skip to main content

get_preview

Function get_preview 

Source
async fn get_preview(
    pool: Data<PgPool>,
    token: Path<String>,
    query: Query<AgentPreviewQuery>,
) -> ControllerResult<Json<PagePreview>>
Expand description

GET /api/v0/main-frontend/agent-preview/{token} - The page a preview token points at, staged or published, or for a token of several pages the page page with the list of pages. No login: the short-lived random token stands in for it, while its user may still edit the course.