fn build_router(admin_config: &AdminConfig, state: Arc<SharedState>) -> RouterExpand description
Builds the admin router: authed API routes, plus — only when compiled with
the ui feature AND admin.ui_enabled is true — the unauthenticated SPA
fallback. Without it, non-API paths get axum’s default 404.