You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
343 B

  1. class Api::SalmonController < ApiController
  2. before_action :set_account
  3. respond_to :txt
  4. def update
  5. body = request.body.read
  6. if body.nil?
  7. head 200
  8. else
  9. ProcessInteractionService.new.call(body, @account)
  10. head 201
  11. end
  12. end
  13. private
  14. def set_account
  15. @account = Account.find(params[:id])
  16. end
  17. end