about summary refs log tree commit diff
path: root/app/controllers/api/salmon_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/salmon_controller.rb')
-rw-r--r--app/controllers/api/salmon_controller.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/api/salmon_controller.rb b/app/controllers/api/salmon_controller.rb
new file mode 100644
index 000000000..99ec15bff
--- /dev/null
+++ b/app/controllers/api/salmon_controller.rb
@@ -0,0 +1,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