Add endpoints to accept and dismiss multiple notification requests at once (#31242)
This commit is contained in:
parent
584b1524dd
commit
da5b45a573
3 changed files with 54 additions and 1 deletions
|
@ -155,6 +155,11 @@ namespace :api, format: false do
|
|||
|
||||
namespace :notifications do
|
||||
resources :requests, only: [:index, :show] do
|
||||
collection do
|
||||
post :accept, to: 'requests#accept_bulk'
|
||||
post :dismiss, to: 'requests#dismiss_bulk'
|
||||
end
|
||||
|
||||
member do
|
||||
post :accept
|
||||
post :dismiss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue