mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 08:33:00 +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
|
||||
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
|
||||
|
|
|
@ -162,7 +162,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…
Reference in New Issue
Block a user