Sha256: eb15eceeb5ee5ec31039f01a75289697ea3b38c8a0d1d35efabcac0ecd9608b5

Contents?: true

Size: 308 Bytes

Versions: 17

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module Api
    class CollectionItemsController < ::Maglev::ApiController
      def index
        @items = services.fetch_collection_items.call(
          collection_id: params[:collection_id],
          keyword: params[:q]
        )
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.7.3 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.7.2 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.7.1 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.7.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.6.1 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.6.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.5.1 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.4.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.3.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.2.2 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.2.1 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.2.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.7 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.6 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.5 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.4 app/controllers/maglev/api/collection_items_controller.rb