Sha256: d2d81b22900208d86f31d74f98f1519da8d2bf87ee3e4dead7fb11cdad865b03

Contents?: true

Size: 365 Bytes

Versions: 134

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

class Spree::Api::StoreCreditEventsController < Spree::Api::BaseController
  def mine
    if current_api_user
      @store_credit_events = paginate(
        current_api_user.store_credit_events.exposed_events
      ).reverse_chronological
    else
      render "spree/api/errors/unauthorized", status: :unauthorized
    end
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
solidus_api-4.4.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.4.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.3.4 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.2.4 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.1.5 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.3.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.3.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.1.4 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.3.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.3.0 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.2.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.1.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.0.4 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-3.4.6 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.0.3 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.1.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.2.2 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-3.4.5 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.2.1 app/controllers/spree/api/store_credit_events_controller.rb
solidus_api-4.2.0 app/controllers/spree/api/store_credit_events_controller.rb