Sha256: e1024a6c5087dedb8d1339493b67bc753272eddc6da1be41d315478236c31489

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

require_relative 'config/boot'
require 'lamby'
require_relative 'config/application'
require_relative 'config/environment'

$app = Rack::Builder.new { run Rails.application }.to_app

def handler(event:, context:)
  Lamby.handler $app, event, context, rack: :api
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
lamby-no-rails-1.0.3 lib/lamby/templates/api_gateway/app.rb
lamby-1.0.2 lib/lamby/templates/api_gateway/app.rb
lamby-1.0.1 lib/lamby/templates/api_gateway/app.rb
lamby-1.0.0 lib/lamby/templates/api_gateway/app.rb
lamby-0.6.0 lib/lamby/templates/api_gateway/app.rb