chatwoot/chatwoot

View on GitHub
app/controllers/webhooks/line_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Webhooks::LineController < ActionController::API
  def process_payload
    Webhooks::LineEventsJob.perform_later(params: params.to_unsafe_hash, signature: request.headers['x-line-signature'], post_body: request.raw_post)
    head :ok
  end
end