Skip to main content

operator_only

Function operator_only 

Source
pub fn operator_only<S: Clone + Send + Sync + 'static>(
    router: Router<S>,
    operator: Arc<Operator>,
) -> Router<S>
Expand description

Put router’s routes behind the browser rules (outermost) and the session cookie. Only routes added to router before this call are covered: add every operator route first.