Skip to main content

activate_service_human

Function activate_service_human 

Source
pub fn activate_service_human(
    corpus: &str,
    form: Form<ActivateForm>,
    session: Option<AdminSession>,
    pool: &State<DbPool>,
    database_url: &State<DatabaseUrl>,
) -> Result<Redirect, Status>
Expand description

The human twin of activate_service: the corpus screen’s “Activate a service” form. Gated by the signed-in AdminSession cookie (anonymous → sign-in); spawns the activation job and redirects to /jobs. 404 on an unknown corpus/service.