From 2da02aac8a05ad82fdd6876c9ff6c0586efba10d Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 26 Dec 2020 22:52:54 +0530 Subject: add model urls to catalog response --- backend/src/handlers/product.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/src') 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 { pub kind: Option, pub price: f32, pub description: Option, + pub src: Option, + pub ios_src: Option, pub average_rating: Option, } @@ -116,6 +118,8 @@ pub async fn get_all_products(pool: web::Data) -> impl Responder { kind: p.kind, price: p.price, description: p.description, + src: p.src, + ios_src: p.ios_src, id: p.id, } }) -- cgit v1.2.3