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.0.13 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.12 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.11 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.10 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.9 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.8 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.7 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.6 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.5 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.4 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.3 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.19 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.2 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.1 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-3.0.0 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.18 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.17 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.16 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.15 lib/jets/internal/app/controllers/jets/bare_controller.rb
jets-2.3.14 lib/jets/internal/app/controllers/jets/bare_controller.rb