Sha256: 2810ffc1117ba17e10ca680a0eaa80f8d7960c5387e110df9c8c6bbda6f3e550

Contents?: true

Size: 259 Bytes

Versions: 46

Compression:

Stored size: 259 Bytes

Contents

module Routing
  module ServiceConcern
    extend ActiveSupport::Concern
    
    def service(service_name)
      resources service_name, only: [:index] do
        get  :invoke, on: :collection
        post :call,   on: :collection
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre app/concerns/routing/service_concern.rb
itsf_backend-4.2.3 app/concerns/routing/service_concern.rb
itsf_backend-4.2.2 app/concerns/routing/service_concern.rb
itsf_backend-4.2.1 app/concerns/routing/service_concern.rb
itsf_backend-4.2.0 app/concerns/routing/service_concern.rb
itsf_backend-4.0.1 app/concerns/routing/service_concern.rb
itsf_backend-4.0.0 app/concerns/routing/service_concern.rb
itsf_backend-3.1.1 app/concerns/routing/service_concern.rb
itsf_backend-3.1.0 app/concerns/routing/service_concern.rb
itsf_backend-3.0.7 app/concerns/routing/service_concern.rb
itsf_backend-3.0.6 app/concerns/routing/service_concern.rb
itsf_backend-3.0.5 app/concerns/routing/service_concern.rb
itsf_backend-3.0.4 app/concerns/routing/service_concern.rb
itsf_backend-3.0.3 app/concerns/routing/service_concern.rb
itsf_backend-3.0.2 app/concerns/routing/service_concern.rb
itsf_backend-3.0.1 app/concerns/routing/service_concern.rb
itsf_backend-3.0.0 app/concerns/routing/service_concern.rb
itsf_backend-2.2.1 app/concerns/routing/service_concern.rb
itsf_backend-2.2.0 app/concerns/routing/service_concern.rb
itsf_backend-2.1.0 app/concerns/routing/service_concern.rb