inventory.rs (358B)
1 use axum::{ 2 extract::{Request, State}, 3 response::IntoResponse, 4 }; 5 6 use crate::AppState; 7 8 /// Proxy all /api/inventory/* requests to the inventory service 9 pub async fn proxy_inventory( 10 State(state): State<AppState>, 11 req: Request, 12 ) -> impl IntoResponse { 13 super::proxy_request(&state.inventory_service_url, req, &state.http_client).await 14 }