Skip to main content

delete_service_human

Function delete_service_human 

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

The human twin of delete_service: the registry screen’s per-service “Delete” form. Gated by the signed-in AdminSession cookie (anonymous → sign-in) and confirmation-gated (echoes the service name), then redirects back to /services. 400 if the confirmation doesn’t match, 403 for a protected service, 404 if unknown.