pub fn register_routes(
router: Router<RouterState>,
control_enabled: bool,
) -> Router<RouterState>Expand description
Registers control routes according to the control_enabled feature flag.
When disabled, the router is returned unchanged and control paths remain
unreachable (HTTP 404 by route absence). When enabled, all four control
paths are registered as POST routes with fully implemented handlers.