Class: Api::V1::ArticleCategoriesController

Inherits:
BaseController
  • Object
show all
Includes:
Concerns::CollectionScope
Defined in:
app/controllers/api/v1/article_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/api/v1/article_categories_controller.rb', line 4

def index
  render json: search_scope
end

#showObject



8
9
10
# File 'app/controllers/api/v1/article_categories_controller.rb', line 8

def show
  render json: scope.find(params.require(:id))
end