编辑课程改为put
This commit is contained in:
parent
a3ed599d49
commit
b1125e7d7e
|
@ -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)},
|
||||
|
|
Loading…
Reference in New Issue