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

14 lines
477 B
Text
Raw Normal View History

json.payload do
json.array! @articles, partial: 'article', as: :article
end
2022-07-28 08:29:16 +00:00
json.meta do
json.all_articles_count @portal_articles.size
json.archived_articles_count @articles.archived.size
json.articles_count @articles_count
json.current_page @current_page
json.draft_articles_count @all_articles.draft.size
json.mine_articles_count @all_articles.search_by_author(current_user.id).size if current_user.present?
json.published_count @articles.published.size
2022-07-28 08:29:16 +00:00
end