Skip to main content

set_service_lease_human

Function set_service_lease_human 

Source
pub fn set_service_lease_human(
    service: &str,
    form: Form<SetLeaseForm>,
    session: Option<AdminSession>,
    pool: &State<DbPool>,
) -> Result<Redirect, Status>
Expand description

The human twin of set_service_lease: the registry screen’s inline per-service lease form. Gated by the signed-in AdminSession cookie (anonymous → sign-in). A blank value clears the override; a non-positive value is 400. Redirects back to /services; 404 if unknown.