blob: b15aefee9e16d5322671de95a1aedf1c7dda7d1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class Api::SalmonController < ApiController
before_action :set_account
respond_to :txt
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
|