16fe912fbd
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com> Co-authored-by: Sojan Jose <sojan@pepalo.com>
16 lines
404 B
Ruby
16 lines
404 B
Ruby
json.data do
|
|
json.meta do
|
|
end
|
|
|
|
json.payload do
|
|
json.array! @inboxes do |inbox|
|
|
json.id inbox.id
|
|
json.channel_id inbox.channel_id
|
|
json.name inbox.name
|
|
json.channel_type inbox.channel_type
|
|
json.avatar_url inbox.channel.try(:avatar).try(:url)
|
|
json.page_id inbox.channel.try(:page_id)
|
|
json.website_token inbox.channel.try(:website_token)
|
|
end
|
|
end
|
|
end
|