2026-04-05 20:23:16 +08:00
|
|
|
use crate::control::GatewayPublicRequestContext;
|
|
|
|
|
use crate::{AppState, GatewayError};
|
2026-04-04 01:40:24 +08:00
|
|
|
use axum::body::{Body, Bytes};
|
|
|
|
|
use axum::http::Response;
|
2026-04-03 14:59:58 +08:00
|
|
|
|
2026-04-07 02:50:19 +08:00
|
|
|
mod routes;
|
|
|
|
|
mod shared;
|
2026-04-03 14:59:58 +08:00
|
|
|
|
|
|
|
|
pub(crate) async fn maybe_build_local_admin_adaptive_response(
|
|
|
|
|
state: &AppState,
|
|
|
|
|
request_context: &GatewayPublicRequestContext,
|
2026-04-04 01:40:24 +08:00
|
|
|
request_body: Option<&Bytes>,
|
2026-04-03 14:59:58 +08:00
|
|
|
) -> Result<Option<Response<Body>>, GatewayError> {
|
2026-04-07 02:50:19 +08:00
|
|
|
routes::maybe_build_local_admin_adaptive_response(state, request_context, request_body).await
|
2026-04-03 14:59:58 +08:00
|
|
|
}
|