Sha256: 6bf487a0d1da9bb6b25662732e44fa1a59f5bda09df27ec39036069e0d8e8828

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

require 'pleiades'

class Line::ApiController < ApplicationController
  include Pleiades::Client

  def callback
    validate_signature || head(:bad_request)

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pleiades-0.1.6 lib/pleiades/generators/pleiades/setup/templates/api_controller.rb
pleiades-0.1.5 lib/pleiades/generators/pleiades/setup/templates/api_controller.rb
pleiades-0.1.4 lib/pleiades/generators/pleiades/setup/templates/api_controller.rb
pleiades-0.1.3 lib/pleiades/generators/pleiades/setup/templates/api_controller.rb
pleiades-0.1.2 lib/pleiades/generators/pleiades/setup/templates/api_controller.rb