Skip to content

Commit

Permalink
Add Top Ten endpoint and new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia committed Dec 14, 2024
1 parent 32e138d commit 1f0dd0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/api/v1/products/new_releases.json.jbuilder
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1f0dd0e

Please sign in to comment.