From 1f0dd0e0edd9cb04491333aacc9682547cb724e9 Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Sat, 14 Dec 2024 22:22:50 +1100 Subject: [PATCH] Add Top Ten endpoint and new releases --- app/views/api/v1/products/new_releases.json.jbuilder | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/api/v1/products/new_releases.json.jbuilder b/app/views/api/v1/products/new_releases.json.jbuilder index 4d74002a..931fed6d 100644 --- a/app/views/api/v1/products/new_releases.json.jbuilder +++ b/app/views/api/v1/products/new_releases.json.jbuilder @@ -1,6 +1,10 @@ # frozen_string_literal: true json.array! @new_releases do |product| - json.product product - json.store product.store -end + json.name product.name + json.store_name product.store.name + json.price product.price + json.slug product.slug + json.created_at product.created_at + json.issue_cover url_for(product.issue_cover) +end \ No newline at end of file