chatwoot-develop/app/views/public/api/v1/portals/articles/index.json.jbuilder

9 lines
275 B
Ruby
Executable File

json.payload do
json.array! @articles.includes([:category, :associated_articles, { author: { avatar_attachment: [:blob] } }]),
partial: 'public/api/v1/models/article', formats: [:json], as: :article
end
json.meta do
json.articles_count @articles_count
end