编辑课程改为put

This commit is contained in:
guange 2015-01-05 17:45:47 +08:00
parent a3ed599d49
commit b1125e7d7e
1 changed files with 1 additions and 1 deletions

View File

@ -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)},