Skip to main content

admin_router

Function admin_router 

Source
pub fn admin_router(admin_state: AdminState) -> Router
Expand description

Build the admin router over the narrow AdminState.

Registers every AdminState-backed admin/operator route (the former monitoring_routes() plus the RFQ quote-provider and competition admin routes) and applies .with_state(admin_state). It does NOT apply the auth layer; the server applies a single auth::monitoring_auth_middleware layer over this router.