mbr_server/lib.rs
1//! mbr-server — mbr's HTTP server.
2//!
3//! The axum router and its handlers (`server`), the live-reload change
4//! channel, the edit/move/rename endpoints and the modules only they use:
5//! atomic file writes (`file_write`), inbound-link grepping (`link_grep`) and
6//! link rewriting on move (`link_rewrite`). With the `watcher` feature, the
7//! filesystem watcher (`watcher`, notify) that feeds live reload and index
8//! invalidation from disk; without it the change channel still carries the
9//! server's own writes.
10//!
11//! Built on `mbr-core`; nothing here is reachable from the core.
12
13pub mod errors;
14pub mod file_write;
15pub mod link_grep;
16pub mod link_rewrite;
17pub mod server;
18mod vault_body;
19#[cfg(feature = "watcher")]
20pub mod watcher;
21
22pub use errors::ServerError;
23pub use server::{EmbeddedStorage, Server, ServerConfig};