Include `update` in the resources args for api/web/push_subscriptions route (#35801)

pull/36096/head
Matt Jankowski 3 months ago committed by Claire
parent ea5d1f0297
commit 97f118013a

@ -361,10 +361,6 @@ namespace :api, format: false do
namespace :web do
resource :settings, only: [:update]
resources :embeds, only: [:show]
resources :push_subscriptions, only: [:create, :destroy] do
member do
put :update
end
end
resources :push_subscriptions, only: [:create, :destroy, :update]
end
end

@ -64,7 +64,7 @@ RSpec.describe 'API Web Push Subscriptions' do
end
end
describe 'PUT /api/web/push_subscriptions' do
describe 'PUT /api/web/push_subscriptions/:id' do
before { sign_in Fabricate :user }
let(:subscription) { Fabricate :web_push_subscription }

Loading…
Cancel
Save