Merge commit '28966fa0a6d7b98ee94696acdc79e45449ce8349' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2024-09-25 17:41:37 +02:00
39 changed files with 350 additions and 625 deletions

View File

@@ -301,21 +301,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
@@ -342,11 +327,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