Sha256: 3bdc3332069181914d9ac0787006c74f2ba27057d9499e2d33661d2fe97cab13

Contents?: true

Size: 308 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
maglevcms-1.1.3 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.2 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.1 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.1.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.0.0 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.0.0.rc3 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.0.0.rc2 app/controllers/maglev/api/collection_items_controller.rb
maglevcms-1.0.0.rc1 app/controllers/maglev/api/collection_items_controller.rb