//! HTTP handlers for gateway endpoints.
//!
//! Each handler validates the request, routes to the appropriate shard,
//! and returns the response to the client.
//!
//! ## Module Structure
//!
//! - `types`: Request/response DTOs and error types
//! - `write_handlers`: Write operations (assert, vote)
//! - `query_handlers`: Read operations (query, health, cluster status, routing)
//! - `admin_handlers`: Admin operations (ranges, force sync, metrics)

pub mod admin_handlers;
pub mod query_handlers;
pub mod types;
pub mod write_handlers;

// Re-export handler functions for convenience
pub use admin_handlers::{handle_force_sync, handle_metrics, handle_ranges};
pub use query_handlers::{
    handle_cluster_status, handle_health, handle_query, handle_route_test, handle_shard_info,
};
pub use write_handlers::{handle_assert, handle_vote};
