Add endpoints for unread notifications count (#31191)
This commit is contained in:
parent
2ce99c51dd
commit
598ae4f2da
6 changed files with 186 additions and 2 deletions
|
@ -167,6 +167,7 @@ namespace :api, format: false do
|
|||
resources :notifications, only: [:index, :show] do
|
||||
collection do
|
||||
post :clear
|
||||
get :unread_count
|
||||
end
|
||||
|
||||
member do
|
||||
|
@ -336,6 +337,7 @@ namespace :api, format: false do
|
|||
resources :notifications, only: [:index, :show] do
|
||||
collection do
|
||||
post :clear
|
||||
get :unread_count
|
||||
end
|
||||
|
||||
member do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue