Skip to main content

systemprompt_api/services/static_content/
mod.rs

1//! Static and prerendered content serving.
2//!
3//! Serves prerendered HTML, static assets, homepage, and metadata files from
4//! the web dist directory, falling back to the content repository when a page
5//! is known but not prerendered. Re-exports the matcher
6//! ([`StaticContentMatcher`]), the serving state ([`StaticContentState`]), and
7//! the session helpers ([`SessionInfo`], [`ensure_session`]).
8
9pub mod config;
10pub mod fallback;
11pub mod homepage;
12pub mod session;
13pub mod static_files;
14
15pub use config::StaticContentMatcher;
16pub use fallback::*;
17pub use homepage::serve_homepage;
18pub use session::{SessionInfo, ensure_session};
19pub use static_files::{StaticContentState, serve_static_content};