Sha256: 67da33d7f802e34f9d11322e68513d1d69776c24cf2f0350f66ba87934658cb6

Contents?: true

Size: 775 Bytes

Versions: 5

Compression:

Stored size: 775 Bytes

Contents

module MnoEnterprise::Concerns::Controllers::Webhook::EventsController
  extend ActiveSupport::Concern

  #==================================================================
  # Included methods
  #==================================================================
  # 'included do' causes the included code to be evaluated in the
  # context where it is included rather than being executed in the module's context
  included do
    skip_before_filter :verify_authenticity_token
  end
  

  #==================================================================
  # Instance methods
  #==================================================================
  # POST /mnoe/webhook/events
  def create
    Rails.logger.debug("Received event #{params[:event]}")
    head :ok
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb
mno-enterprise-api-3.3.3 lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb
mno-enterprise-api-3.3.2 lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb
mno-enterprise-api-3.3.1 lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb
mno-enterprise-api-3.3.0 lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb