shared_framework/config/mod.rs
1//! HTTP routing and server bootstrap.
2//!
3//! Re-exports [`ConfigurationRegistrant`](crate::controller::ConfigurationRegistrant),
4//! which owns the shared [`Router`](crate::controller::Router), mounts
5//! [`RouteController`](crate::controller::RouteController)s, and starts the
6//! Hyper HTTP server. Use this module when wiring routes manually without
7//! [`GenericStartup`](crate::app::GenericStartup).
8//!
9//! ```ignore
10//! let registrant = std::sync::Arc::new(ConfigurationRegistrant::new(addr));
11//! registrant.mount_controller(controller).await;
12//! registrant.serve().await?;
13//! ```
14pub use crate::controller::ConfigurationRegistrant;