Skip to main content

inventory_router

Function inventory_router 

Source
pub fn inventory_router(
    inventory: Arc<dyn IdentityInventoryReadModel>,
) -> Router
Expand description

Build a mountable GET /inventory?filter=... AppView router.

The response is exactly an InventoryEntry[]; it has no envelope in which a pre-filter total or hidden count could leak. Deployment middleware must reject an invalid presented credential with 401; only true credential absence may reach this router without an InventoryViewer extension.