2026-04-09 00:10:38 +08:00
|
|
|
use crate::handlers::admin::request::{AdminAppState, AdminRequestContext};
|
|
|
|
|
use crate::GatewayError;
|
2026-04-04 01:40:24 +08:00
|
|
|
use axum::{body::Body, response::Response};
|
2026-04-03 14:59:58 +08:00
|
|
|
|
|
|
|
|
mod mutations;
|
|
|
|
|
mod reads;
|
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_wallets_response(
|
2026-04-09 00:10:38 +08:00
|
|
|
state: &AdminAppState<'_>,
|
|
|
|
|
request_context: &AdminRequestContext<'_>,
|
2026-04-03 14:59:58 +08:00
|
|
|
request_body: Option<&axum::body::Bytes>,
|
|
|
|
|
) -> Result<Option<Response<Body>>, GatewayError> {
|
2026-04-07 02:50:19 +08:00
|
|
|
routes::maybe_build_local_admin_wallets_routes_response(state, request_context, request_body)
|
|
|
|
|
.await
|
2026-04-03 14:59:58 +08:00
|
|
|
}
|