diff --git a/app/api/mobile/apis/courses.rb b/app/api/mobile/apis/courses.rb index 2e514b6e9..3b2f4dd4c 100644 --- a/app/api/mobile/apis/courses.rb +++ b/app/api/mobile/apis/courses.rb @@ -69,7 +69,7 @@ module Mobile requires :time, type: String, desc: '年份' requires :class_period, type: String, desc: '学时总数' end - post do + put do authenticate! cs_params = { course: params.reject{|k,v| [:term,:time,:class_period].include?(k)},