salmon_controller.rb 269 B

123456789101112131415
  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