Sha256: a388d4e2293d4659c2198938948b1d0ce80d579a35a1414410590affb164a531

Contents?: true

Size: 592 Bytes

Versions: 54

Compression:

Stored size: 592 Bytes

Contents

# Parent class for MountController and RackController
class Jets::BareController < Jets::Controller::Base
  layout false
  internal true
  skip_forgery_protection

private
  # Override process! so it doesnt go through the complete Jets project middleware stack which could interfer with
  # the mounted Rack app.
  def process!
    status, headers, body = dispatch!
    # Use the adapter only to convert the Rack triplet to a API Gateway hash structure
    adapter = Jets::Controller::Rack::Adapter.new(event, context, meth)
    adapter.convert_to_api_gateway(status, headers, body)
  end
end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
jets-3.2.2 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.2.1 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.2.0 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.5 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.4 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.3 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.2 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.1 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.1.0 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.23 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.22 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.21 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.20 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.19 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.18 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.17 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.16 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.15 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.14 lib/jets/internal/app/controllers/jets/bare_controller.rb