Include update in the resources args for api/web/push_subscriptions route (#35801)
This commit is contained in:
@@ -361,10 +361,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
|
||||||
|
|||||||
@@ -64,7 +64,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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user