Skip to main content

set_paths

Function set_paths 

Source
pub async fn set_paths(
    conn: &mut PgConnection,
    new_paths: &[(Uuid, &str)],
) -> ModelResult<Vec<CreatedRedirect>>
Expand description

Moves pages to new paths, normalized as the page save stores them, and redirects each moved course page’s old path to it. Returns those redirects; pages already at their path, deleted pages and exam pages get none.