Sha256: 2b87cfaf370a2b2f68e8465e7f47b1ebb032f5a24fd461fd26758c1c8579a77f

Contents?: true

Size: 146 Bytes

Versions: 11

Compression:

Stored size: 146 Bytes

Contents

post '/hooks' do
  params = JSON.parse(request.env["rack.input"].read)
  Fourchette::PullRequest.new.async.perform(params)
  "Got it, thanks!"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fourchette-0.1.2 lib/fourchette/web/hooks.rb
fourchette-0.1.1 lib/fourchette/web/hooks.rb
fourchette-0.1.0 lib/fourchette/web/hooks.rb
fourchette-0.0.8 lib/fourchette/web/hooks.rb
fourchette-0.0.7 lib/fourchette/web/hooks.rb
fourchette-0.0.6 lib/fourchette/web/hooks.rb
fourchette-0.0.5 lib/fourchette/web/hooks.rb
fourchette-0.0.4 lib/fourchette/web/hooks.rb
fourchette-0.0.3 lib/fourchette/web/hooks.rb
fourchette-0.0.2 lib/fourchette/web/hooks.rb
fourchette-0.0.1 lib/fourchette/web/hooks.rb