about summary refs log blame commit diff
path: root/app/controllers/api/salmon_controller.rb
blob: 8bd653d7d942f74f73a13b2ae8c366b4a7706798 (plain) (tree)
1
2
3
4
5
6
7
                                           
                            
                 
            
                                                                   
            






                                        
class Api::SalmonController < ApiController
  before_action :set_account
  respond_to :txt

  def update
    ProcessInteractionService.new.call(request.body.read, @account)
    head 201
  end

  private

  def set_account
    @account = Account.find(params[:id])
  end
end