Class: Line::ApiController

Inherits:
ApplicationController
  • Object
show all
Includes:
Pleiades::Client
Defined in:
lib/pleiades/generators/pleiades/setup/templates/api_controller.rb

Instance Method Summary collapse

Methods included from Pleiades::Client

included

Instance Method Details

#callbackObject



6
7
8
9
10
11
12
13
# File 'lib/pleiades/generators/pleiades/setup/templates/api_controller.rb', line 6

def callback
  validate_signature || head(:bad_request)

  events.each do |event|
    Pleiades::Command.get(event).call
  end
  head :ok
end