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.

15 lines
269 B

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