Skip to content
Snippets Groups Projects
Unverified Commit 97e43ec5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add GET /api/v1/push/subscription REST API (#7471)

* Add Api::V1::Push::SubscriptionsController#show

* Add to routes
parent f31e58af
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
......@@ -308,7 +308,7 @@ Rails.application.routes.draw do
end
namespace :push do
resource :subscription, only: [:create, :update, :destroy]
resource :subscription, only: [:create, :show, :update, :destroy]
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment