Feat: Article public apis (#4955)

This commit is contained in:
Tejaswini Chile
2022-07-08 17:24:38 +05:30
committed by GitHub
parent 13a4e0e6d9
commit fdf449dc87
19 changed files with 205 additions and 46 deletions

View File

@@ -5,7 +5,7 @@ class Api::V1::Accounts::ArticlesController < Api::V1::Accounts::BaseController
def index
@articles = @portal.articles
@articles.search(list_params) if params[:payload].present?
@articles = @articles.search(list_params) if params[:payload].present?
end
def create

View File

@@ -46,7 +46,7 @@ class Api::V1::Accounts::CategoriesController < Api::V1::Accounts::BaseControlle
def category_params
params.require(:category).permit(
:name, :description, :position, :slug, :locale, :parent_category_id, :linked_category_id
:name, :description, :position, :slug, :locale, :parent_category_id, :associated_category_id
)
end
end