about summary refs log tree commit diff
path: root/app/controllers/api/v1
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-13 21:07:31 +0200
committerGitHub <noreply@github.com>2018-05-13 21:07:31 +0200
commit97e43ec5f08aeafe0cb34a2e71e857f22c547f7a (patch)
tree3aebfc603a3d306692fe7b25746063d5797becac /app/controllers/api/v1
parentf31e58af9e6333f96248562cebfd215b6d32bcfc (diff)
Add GET /api/v1/push/subscription REST API (#7471)
* Add Api::V1::Push::SubscriptionsController#show

* Add to routes
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r--app/controllers/api/v1/push/subscriptions_controller.rb4
1 files changed, 4 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..e99f20ca0 100644
--- a/app/controllers/api/v1/push/subscriptions_controller.rb
+++ b/app/controllers/api/v1/push/subscriptions_controller.rb
@@ -20,6 +20,10 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController
     render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer
   end
 
+  def show
+    render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer
+  end
+
   def update
     raise ActiveRecord::RecordNotFound if @web_subscription.nil?