Skip to main content

router_with_auth

Function router_with_auth 

Source
pub fn router_with_auth(
    fleet: Arc<dyn FleetProvider>,
    admin: Option<Arc<dyn FleetAdmin>>,
    store: Arc<dyn Store>,
    bus: Arc<dyn EventBus>,
    automations: Option<Arc<AutomationEngine>>,
    auth: AuthState,
) -> Router
Expand description

Build the application router over the backend seams (constructed once, at the daemon’s composition edge — see prospero-daemon’s main.rs).