1pub mod app;
25pub mod audit;
26pub mod chain;
27pub mod extract;
28#[cfg(feature = "cache")]
29pub mod idempotency;
30pub mod middleware;
31pub mod policy;
32pub mod resources;
33pub mod router;
34pub mod sse;
35pub mod tenant;
36
37#[cfg(feature = "template")]
38pub mod template_engine;
39
40pub use app::App;
41pub use audit::{AuditConfig, AuditRecord, AuditResult, AuditSink, AuditWriter};
42pub use extract::{
43 ClientContext, CurrentUser, FileSender, OptionalUser, RequestedTenantId, TenantId,
44 ValidatedJson,
45};
46pub use middleware::{AuthLayer, RequireRoleLayer, RequestStart};
47pub use tenant::{
48 current_tenant_id, require_tenant_id, resolve_tenant, tenant_context_layer, with_tenant,
49};
50pub use router::{RouteEntry, RouteGuard, WordvalRouter};
52pub use wordval_core::api::{ApiError, PageData, Res, ResResult};
53
54#[cfg(feature = "cache")]
55pub use crate::resources::{cache, set_cache, try_cache};
56pub use crate::resources::{cfg, config, set_config, try_config};
57pub use crate::resources::{
58 audit_write, audit_writer, set_audit_writer, shutdown_audit_writer, try_audit_writer,
59};
60#[cfg(feature = "db")]
61pub use crate::resources::{
62 db, db_default, db_names, register_db, remove_db, set_db, set_dbs, try_db, try_using, DbHandle,
63 DEFAULT_DB_NAME,
64};
65pub use crate::resources::{
66 download_path, set_download_path, set_upload_path, try_download_path, try_upload_path,
67 upload_path,
68};
69#[cfg(feature = "template")]
70pub use crate::resources::{render_template, set_template, try_template};
71#[cfg(feature = "template")]
72pub use crate::template_engine::TemplateEngine;
73
74#[linkme::distributed_slice]
79pub static ROUTES: [fn(&mut WordvalRouter)] = [..];