Chatwoot/app/views/api/v1/accounts/conversations/index.json.jbuilder

14 lines
460 B
Text
Raw Normal View History

json.data do
json.meta do
json.mine_count @conversations_count[:mine_count]
json.assigned_count @conversations_count[:assigned_count]
json.unassigned_count @conversations_count[:unassigned_count]
json.all_count @conversations_count[:all_count]
end
json.payload do
json.array! @conversations do |conversation|
json.partial! 'api/v1/conversations/partials/conversation.json.jbuilder', conversation: conversation
end
end
end