trusty-console 0.3.1

Web console that detects and surfaces running trusty services as a home page with service cards
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! HTTP route handlers extracted from `server.rs` to keep that file under the
//! 500-SLOC production cap.
//!
//! Why: P2 (#1222) adds the trusty-mpm Sessions surface — a dozen new route
//! handlers. Adding them inline to `server.rs` would push it well over the cap.
//! Grouping the session/supervisor/auto-resume handlers here keeps `server.rs`
//! focused on the router, app state, and the pre-existing metrics/SPA handlers.
//! What: re-exports the `sessions` submodule's handlers and the shared
//! `McpHandleError` → HTTP response mapping helper, the `config` submodule (#1220
//! Config tab — `/api/console/config/mpm`), plus the `origin_guard` same-origin
//! middleware that protects the destructive write routes.
//! Test: each submodule carries its own `#[cfg(test)]` tests; the route wiring
//! is exercised by `server.rs`'s integration tests.

pub mod config;
pub mod origin_guard;
pub mod sessions;