Add endpoints for unread notifications count (#31191)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user