about summary refs log tree commit diff
path: root/app/controllers/api/salmon_controller.rb
blob: 99ec15bff2e46d9af328c3ac1745b0e74f316dac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Api::SalmonController < ApplicationController
  before_action :set_account

  def update
    ProcessInteractionService.new.(request.body.read, @account)
    render nothing: true, status: 201
  end

  private

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