Skip to main content

handle_policy

Function handle_policy 

Source
pub(crate) async fn handle_policy(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<DesktopPolicyRequest>,
) -> Response
Expand description

POST /api/v1/agent/desktop/policy: whether Desktop is on, and each listed window’s state (blocked with a reason, or granted).