Class: Maglev::Api::CollectionItemsController

Inherits:
Maglev::ApiController show all
Defined in:
app/controllers/maglev/api/collection_items_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
# File 'app/controllers/maglev/api/collection_items_controller.rb', line 6

def index
  @items = services.fetch_collection_items.call(
    collection_id: params[:collection_id],
    keyword: params[:q]
  )
end