tdm_server_rust/middleware/mod.rs
1//! HTTP 中间件层 (Middleware)
2//!
3//! | 子模块 | 说明 |
4//! |--------|------|
5//! | `auth` | JWT 鉴权 + 路由权限校验 |
6//! | `debug_log` | 请求/响应体日志(dev 环境) |
7//! | `error_log` | 统一错误日志记录 |
8//! | `http_log_fmt` | ANSI 终端日志着色 |
9
10mod auth;
11mod debug_log;
12mod error_log;
13mod http_log_fmt;
14
15pub use auth::{auth_middleware, AuthMember};
16pub use debug_log::debug_log_middleware;
17pub use error_log::error_log_middleware;
18pub(crate) use http_log_fmt::HttpLogStyle;