maestrano/mno-enterprise

View on GitHub
api/lib/mno_enterprise/concerns/controllers/webhook/events_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
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