feat: Portals store integration (#5185)

This commit is contained in:
Muhsin Keloth
2022-08-08 15:47:32 +05:30
committed by GitHub
parent 052422ed03
commit 20f3568583
30 changed files with 982 additions and 413 deletions

View File

@@ -1,5 +1,4 @@
json.id article.id
json.category_id article.category_id
json.title article.title
json.content article.content
json.description article.description
@@ -7,6 +6,11 @@ json.status article.status
json.account_id article.account_id
json.updated_at article.updated_at.to_i
json.category do
json.id article.category_id
json.name article.category.name
end
if article.portal.present?
json.portal do
json.partial! 'api/v1/accounts/portals/portal.json.jbuilder', portal: article.portal