dmails: allow Members to mark dmails as spam.

* Allow Members to mark dmails as spam or not spam (previously Gold only).
* Replace spam and ham endpoints with single update endpoint.
This commit is contained in:
evazion
2020-01-30 20:59:53 -06:00
parent ea45e44e10
commit 5df8d08aae
6 changed files with 24 additions and 34 deletions

View File

@@ -110,11 +110,7 @@ Rails.application.routes.draw do
put :cancel
end
end
resources :dmails, :only => [:new, :create, :index, :show, :destroy] do
member do
post :spam
post :ham
end
resources :dmails, :only => [:new, :create, :update, :index, :show, :destroy] do
collection do
post :mark_all_as_read
end