mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Include update
in the resources args for api/web/push_subscriptions route (#35801)
This commit is contained in:
parent
a18e6199ef
commit
9d15b85d3b
|
@ -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
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user