mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-28 08:00:38 +00:00
Preserve main quota, Guardian, and WebSocket fixes alongside the new provider and module organization. Co-authored-by: Codex <noreply@openai.com>
22 lines
526 B
Rust
22 lines
526 B
Rust
//! 插件管理 HTTP 路由的组合入口与共用请求类型
|
|
|
|
mod artifacts;
|
|
mod distribution;
|
|
mod instances;
|
|
mod management;
|
|
|
|
pub(super) use management::{model_router, public_router};
|
|
|
|
#[derive(serde::Deserialize)]
|
|
#[serde(deny_unknown_fields)]
|
|
struct IdRequest {
|
|
id: String,
|
|
}
|
|
|
|
pub(super) fn router<S: crate::SessionState + Clone + Send + Sync + 'static>() -> axum::Router<S> {
|
|
artifacts::router()
|
|
.merge(distribution::router())
|
|
.merge(instances::router())
|
|
.merge(management::router())
|
|
}
|