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

This commit is contained in:
Matt Jankowski 2025-08-18 03:35:56 -04:00 committed by GitHub
parent a18e6199ef
commit 9d15b85d3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

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

View File

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