cover image
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
if @shops
|
||||
json.status true
|
||||
json.data @shops
|
||||
json.data @shops do |shop|
|
||||
json.id shop.id
|
||||
json.name shop.name
|
||||
json.logo shop.logo
|
||||
json.shop_code shop.shop_code
|
||||
json.cover shop.display_images.empty? ? nil : "#{api_display_image_url(shop.shop_code)}.jpeg"
|
||||
end
|
||||
else
|
||||
json.status false
|
||||
json.message "Record Not Found"
|
||||
|
||||
Reference in New Issue
Block a user