exercises

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

products.rs (354B)


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