Class: Legate::Web::WebhookListener

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/legate/web/webhook_listener.rb

Overview

Minimal Rack application (using Sinatra) to listen for incoming webhooks. Intended to be mounted within the main Legate::Web::App or run standalone.

Constant Summary collapse

MAX_REQUEST_BODY_SIZE =

10 MB

10 * 1024 * 1024

Instance Method Summary collapse

Constructor Details

#initialize(app = nil) ⇒ WebhookListener

— Instance Initialization —



38
39
40
41
# File 'lib/legate/web/webhook_listener.rb', line 38

def initialize(app = nil)
  super(app) # Call Sinatra::Base initializer
  setup_static_routes! # Setup routes on instance creation
end