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//!
9//! Copyright (c) systemprompt.io — Business Source License 1.1.
10//! See <https://systemprompt.io> for licensing details.
11
12pub mod config;
13pub mod fallback;
14pub mod homepage;
15pub mod session;
16pub mod static_files;
17
18pub use config::StaticContentMatcher;
19pub use fallback::*;
20pub use homepage::serve_homepage;
21pub use session::{SessionInfo, ensure_session};
22pub use static_files::{StaticContentState, serve_static_content};