mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 03:39:49 +08:00
- 移除 upstream_base_url 参数及 AETHER_GATEWAY_UPSTREAM 环境变量,gateway 不再需要指向 Python 宿主 - 删除所有 LEGACY_*/PYTHON_* 常量、路由组、header 定义及 sunset/phaseout 机制 - 将 legacy_gateway_bridge 重命名为 internal_gateway,executor 相关命名统一为 execution_runtime - dev.sh 新增 Postgres/Redis 预检查,移除 upstream 相关启动参数和提示 - 新增 ai_public 路由处理器 - 全量适配 handler、test、state、control 等模块的命名和接口变更
25 lines
710 B
Rust
25 lines
710 B
Rust
use crate::gateway::{AppState, GatewayError, GatewayPublicRequestContext};
|
|
use axum::{body::Body, response::Response};
|
|
|
|
#[path = "wallets/routes.rs"]
|
|
mod admin_wallets_routes;
|
|
#[path = "wallets/shared.rs"]
|
|
mod admin_wallets_shared;
|
|
#[path = "wallets/mutations.rs"]
|
|
mod mutations;
|
|
#[path = "wallets/reads.rs"]
|
|
mod reads;
|
|
|
|
pub(crate) async fn maybe_build_local_admin_wallets_response(
|
|
state: &AppState,
|
|
request_context: &GatewayPublicRequestContext,
|
|
request_body: Option<&axum::body::Bytes>,
|
|
) -> Result<Option<Response<Body>>, GatewayError> {
|
|
admin_wallets_routes::maybe_build_local_admin_wallets_routes_response(
|
|
state,
|
|
request_context,
|
|
request_body,
|
|
)
|
|
.await
|
|
}
|