From 65d4b82ea0cdb5230c8f30a3ad9c9b3b2e934120 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 1 Feb 2020 14:31:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9A=84=E5=AE=9E?= =?UTF-8?q?=E8=B7=B5=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/weapps/subjects_controller.rb | 4 ++++ config/routes.rb | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 app/controllers/weapps/subjects_controller.rb diff --git a/app/controllers/weapps/subjects_controller.rb b/app/controllers/weapps/subjects_controller.rb new file mode 100644 index 000000000..8459ee147 --- /dev/null +++ b/app/controllers/weapps/subjects_controller.rb @@ -0,0 +1,4 @@ +class Weapps::SubjectsController < Weapps::BaseController + + +end diff --git a/config/routes.rb b/config/routes.rb index e7482d813..9b2bd3a16 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1018,6 +1018,8 @@ Rails.application.routes.draw do post :cancel_sticky, on: :collection end + resources :subjects, path: :paths, only: [:create, :update, :edit, :show] + resources :courses, only: [:create, :update, :edit, :show] do member do get :shixun_homework_category