feat: Delete notification by id API (#8430)

This commit is contained in:
Muhsin Keloth
2023-11-29 22:45:11 +05:30
committed by GitHub
parent 683f9d9a28
commit bc6e3e598f
3 changed files with 33 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ Rails.application.routes.draw do
end
end
resources :notifications, only: [:index, :update] do
resources :notifications, only: [:index, :update, :destroy] do
collection do
post :read_all
get :unread_count