Skip to main content

Crate trustee_api

Crate trustee_api 

Source
Expand description

Trustee API — REST + WebSocket server for the Trustee agent.

Wraps a trustee_core::session::Session and exposes it over HTTP. Static frontend files are served from trustee_web.

Authentication is optional. When [oidc] or [dev] sections are present in the config TOML, all /api/v1/* endpoints require a valid JWT or dev token. Otherwise, all endpoints are open.

Re-exports§

pub use auth::AuthConfig;
pub use auth::AuthState;

Modules§

auth
Authentication module for Trustee API.

Structs§

ServerState
Shared state accessible by all axum handlers.

Functions§

run
Run the API server.