about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-14 20:51:50 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-14 20:51:50 +0200
commitba7ee67498905cbc96d531d45a80e284880e09ee (patch)
tree755476fb27484fb36bd01578f8f22d4dd8d64562 /app/controllers/api
parent46659655439e7d76726aa38ed5d599a795b3790f (diff)
parent03b69ebc450efc07246bd64204276941b7ede3fc (diff)
Merge branch 'master' into glitch-soc/merge
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/push/subscriptions_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/api/v1/push/subscriptions_controller.rb b/app/controllers/api/v1/push/subscriptions_controller.rb
index 5038cc03c..1a19bd0ef 100644
--- a/app/controllers/api/v1/push/subscriptions_controller.rb
+++ b/app/controllers/api/v1/push/subscriptions_controller.rb
@@ -20,6 +20,12 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController
     render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer
   end
 
+  def show
+    raise ActiveRecord::RecordNotFound if @web_subscription.nil?
+
+    render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer
+  end
+
   def update
     raise ActiveRecord::RecordNotFound if @web_subscription.nil?