aboutsummaryrefslogtreecommitdiff
path: root/backend/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/handlers')
-rw-r--r--backend/src/handlers/product.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/src/handlers/product.rs b/backend/src/handlers/product.rs
index 0113bc8..fe23680 100644
--- a/backend/src/handlers/product.rs
+++ b/backend/src/handlers/product.rs
@@ -81,6 +81,8 @@ struct CatalogProduct {
81 pub kind: Option<String>, 81 pub kind: Option<String>,
82 pub price: f32, 82 pub price: f32,
83 pub description: Option<String>, 83 pub description: Option<String>,
84 pub src: Option<String>,
85 pub ios_src: Option<String>,
84 pub average_rating: Option<f64>, 86 pub average_rating: Option<f64>,
85} 87}
86 88
@@ -116,6 +118,8 @@ pub async fn get_all_products(pool: web::Data<TPool>) -> impl Responder {
116 kind: p.kind, 118 kind: p.kind,
117 price: p.price, 119 price: p.price,
118 description: p.description, 120 description: p.description,
121 src: p.src,
122 ios_src: p.ios_src,
119 id: p.id, 123 id: p.id,
120 } 124 }
121 }) 125 })