Remove deprecated v2_alpha
endpoint for grouped notifications (#32089)
This commit is contained in:
parent
739ad0eed2
commit
28966fa0a6
2 changed files with 11 additions and 364 deletions
|
@ -299,21 +299,6 @@ namespace :api, format: false do
|
|||
end
|
||||
end
|
||||
|
||||
concern :grouped_notifications do
|
||||
resources :notifications, param: :group_key, only: [:index, :show] do
|
||||
collection do
|
||||
post :clear
|
||||
get :unread_count
|
||||
end
|
||||
|
||||
member do
|
||||
post :dismiss
|
||||
end
|
||||
|
||||
resources :accounts, only: [:index], module: :notifications
|
||||
end
|
||||
end
|
||||
|
||||
namespace :v2 do
|
||||
get '/search', to: 'search#index', as: :search
|
||||
|
||||
|
@ -340,11 +325,18 @@ namespace :api, format: false do
|
|||
resource :policy, only: [:show, :update]
|
||||
end
|
||||
|
||||
concerns :grouped_notifications
|
||||
end
|
||||
resources :notifications, param: :group_key, only: [:index, :show] do
|
||||
collection do
|
||||
post :clear
|
||||
get :unread_count
|
||||
end
|
||||
|
||||
namespace :v2_alpha, module: 'v2' do
|
||||
concerns :grouped_notifications
|
||||
member do
|
||||
post :dismiss
|
||||
end
|
||||
|
||||
resources :accounts, only: [:index], module: :notifications
|
||||
end
|
||||
end
|
||||
|
||||
namespace :web do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue