about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-21 22:14:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-21 22:14:13 +0100
commit3a4b5961bea66681ba9c455fcfd3ec497bfaed2f (patch)
tree07a1948891358c2a2d5f41d30ab51f711eda059a /app
parentdeedf133d386d388da146c9fc24659b361ef1c49 (diff)
Method to fetch a single notification
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/v1/notifications_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/api/v1/notifications_controller.rb b/app/controllers/api/v1/notifications_controller.rb
index c8f162cb0..3fd701997 100644
--- a/app/controllers/api/v1/notifications_controller.rb
+++ b/app/controllers/api/v1/notifications_controller.rb
@@ -20,4 +20,8 @@ class Api::V1::NotificationsController < ApiController
 
     set_pagination_headers(next_path, prev_path)
   end
+
+  def show
+    @notification = Notification.where(account: current_account).find(params[:id])
+  end
 end