diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-01-27 11:05:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 11:05:33 +0100 |
commit | 663ea84b08162578cd06b54bfb998072b2bef8b9 (patch) | |
tree | adb4e2701655dd2d62140f101ebb1815e399d1ff /config/routes.rb | |
parent | 4363d06986bb2df1bb15db54df41ddf1d9682afb (diff) |
Add publish/unpublish controls to announcements in admin UI (#12967)
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index da7bf6f88..c22efc1e1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -177,7 +177,13 @@ Rails.application.routes.draw do resources :email_domain_blocks, only: [:index, :new, :create, :destroy] resources :action_logs, only: [:index] resources :warning_presets, except: [:new] - resources :announcements, except: [:show] + + resources :announcements, except: [:show] do + member do + post :publish + post :unpublish + end + end resource :settings, only: [:edit, :update] |