From ebfe64b56951f3db69e69d67e10d8343d2d66854 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 10 Dec 2019 15:54:52 +0800 Subject: [PATCH] =?UTF-8?q?admins=E5=A2=9E=E5=8A=A0=E5=AE=9E=E8=B7=B5?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 6a5af684e..f2b1342e0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1009,6 +1009,18 @@ Rails.application.routes.draw do end resource :competition_setting, only: [:show, :update] end + + resources :subjects, only: [:index, :edit, :update, :destroy] do + member do + post :hide + post :cancel_hide + post :homepage_show + post :cancel_homepage_show + post :excellent + post :cancel_excellent + end + end + end namespace :cooperative do