|
|
@ -78,7 +78,7 @@ Rails.application.routes.draw do
|
|
|
|
resources :repositories, path: '/:login/:repo_identifier', only: [:index] do
|
|
|
|
resources :repositories, path: '/:login/:repo_identifier', only: [:index] do
|
|
|
|
collection do
|
|
|
|
collection do
|
|
|
|
get :entries
|
|
|
|
get :entries
|
|
|
|
get :sub_entries
|
|
|
|
match :sub_entries, :via => [:get, :put]
|
|
|
|
get :commits
|
|
|
|
get :commits
|
|
|
|
get :single_commit
|
|
|
|
get :single_commit
|
|
|
|
post :files
|
|
|
|
post :files
|
|
|
@ -419,266 +419,6 @@ Rails.application.routes.draw do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
resources :courses do
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get 'settings', :action => 'settings', :as => 'settings'
|
|
|
|
|
|
|
|
post 'set_invite_code_halt'
|
|
|
|
|
|
|
|
post 'set_public_or_private'
|
|
|
|
|
|
|
|
post 'search_teacher_candidate'
|
|
|
|
|
|
|
|
post 'add_teacher'
|
|
|
|
|
|
|
|
post 'create_graduation_group'
|
|
|
|
|
|
|
|
post 'join_graduation_group'
|
|
|
|
|
|
|
|
post 'set_course_group'
|
|
|
|
|
|
|
|
post 'change_course_admin'
|
|
|
|
|
|
|
|
post 'change_member_role'
|
|
|
|
|
|
|
|
post 'change_course_teacher'
|
|
|
|
|
|
|
|
post 'delete_course_teacher'
|
|
|
|
|
|
|
|
post 'teacher_application_review'
|
|
|
|
|
|
|
|
post 'transfer_to_course_group'
|
|
|
|
|
|
|
|
post 'delete_from_course'
|
|
|
|
|
|
|
|
post 'add_students_by_search'
|
|
|
|
|
|
|
|
post 'create_group_by_importing_file'
|
|
|
|
|
|
|
|
post 'duplicate_course'
|
|
|
|
|
|
|
|
post 'visits_plus_one'
|
|
|
|
|
|
|
|
get 'get_historical_courses'
|
|
|
|
|
|
|
|
get 'get_historical_course_students'
|
|
|
|
|
|
|
|
get 'course_group_list'
|
|
|
|
|
|
|
|
get 'add_teacher_popup'
|
|
|
|
|
|
|
|
get 'teachers'
|
|
|
|
|
|
|
|
get 'apply_teachers'
|
|
|
|
|
|
|
|
get 'graduation_group_list'
|
|
|
|
|
|
|
|
get 'top_banner'
|
|
|
|
|
|
|
|
get 'left_banner'
|
|
|
|
|
|
|
|
get 'students'
|
|
|
|
|
|
|
|
get 'all_course_groups'
|
|
|
|
|
|
|
|
get 'search_users'
|
|
|
|
|
|
|
|
get 'base_info'
|
|
|
|
|
|
|
|
get 'attahcment_category_list'
|
|
|
|
|
|
|
|
get 'export_member_scores_excel' #导出课堂信息
|
|
|
|
|
|
|
|
get 'export_couser_info'
|
|
|
|
|
|
|
|
get 'export_member_act_score'
|
|
|
|
|
|
|
|
post 'switch_to_teacher'
|
|
|
|
|
|
|
|
post 'switch_to_assistant'
|
|
|
|
|
|
|
|
post 'switch_to_student'
|
|
|
|
|
|
|
|
post 'exit_course'
|
|
|
|
|
|
|
|
get 'informs'
|
|
|
|
|
|
|
|
post 'update_informs'
|
|
|
|
|
|
|
|
post 'new_informs'
|
|
|
|
|
|
|
|
delete 'delete_informs'
|
|
|
|
|
|
|
|
get 'online_learning'
|
|
|
|
|
|
|
|
post 'join_excellent_course'
|
|
|
|
|
|
|
|
get 'tasks_list'
|
|
|
|
|
|
|
|
post 'update_task_position'
|
|
|
|
|
|
|
|
get 'course_groups'
|
|
|
|
|
|
|
|
post 'join_course_group'
|
|
|
|
|
|
|
|
get 'work_score'
|
|
|
|
|
|
|
|
get 'act_score'
|
|
|
|
|
|
|
|
get 'statistics'
|
|
|
|
|
|
|
|
post :inform_up
|
|
|
|
|
|
|
|
post :inform_down
|
|
|
|
|
|
|
|
get :calculate_all_shixun_scores
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
post 'apply_to_join_course'
|
|
|
|
|
|
|
|
post 'search_course_list'
|
|
|
|
|
|
|
|
get 'board_list'
|
|
|
|
|
|
|
|
get 'mine'
|
|
|
|
|
|
|
|
get 'search_slim'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :course_stages, shallow: true do
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
post :up_position
|
|
|
|
|
|
|
|
post :down_position
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :polls, only:[:index,:new,:create] do
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
post :publish # 立即发布
|
|
|
|
|
|
|
|
post :end_poll # 立即截止
|
|
|
|
|
|
|
|
post :destroys # 多个删除
|
|
|
|
|
|
|
|
post :set_public # 设置公开
|
|
|
|
|
|
|
|
post :join_poll_banks # 加入习题集
|
|
|
|
|
|
|
|
get :my_polls #我的问卷题库
|
|
|
|
|
|
|
|
get :public_polls # 公共问卷题库
|
|
|
|
|
|
|
|
get :publish_modal # 立即发布弹窗内容
|
|
|
|
|
|
|
|
get :end_poll_modal # 立即截止弹窗内容
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :homework_commons, shallow: true do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get :group_list
|
|
|
|
|
|
|
|
post :homework_code_repeat
|
|
|
|
|
|
|
|
get :code_review_results
|
|
|
|
|
|
|
|
get :code_review_detail
|
|
|
|
|
|
|
|
post :update_explanation
|
|
|
|
|
|
|
|
get :show_comment
|
|
|
|
|
|
|
|
get :settings
|
|
|
|
|
|
|
|
post :update_settings
|
|
|
|
|
|
|
|
match 'works_list', :via => [:get, :post]
|
|
|
|
|
|
|
|
# post :works_list
|
|
|
|
|
|
|
|
get :reference_answer
|
|
|
|
|
|
|
|
get :publish_groups
|
|
|
|
|
|
|
|
get :end_groups
|
|
|
|
|
|
|
|
post :alter_name
|
|
|
|
|
|
|
|
get :update_score
|
|
|
|
|
|
|
|
get :update_student_score
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
post 'create_shixun_homework'
|
|
|
|
|
|
|
|
match 'shixuns', via: [:get, :post]
|
|
|
|
|
|
|
|
match 'subjects', via: [:get, :post]
|
|
|
|
|
|
|
|
post 'create_subject_homework'
|
|
|
|
|
|
|
|
post 'publish_homework'
|
|
|
|
|
|
|
|
post 'end_homework'
|
|
|
|
|
|
|
|
post 'set_public'
|
|
|
|
|
|
|
|
post 'move_to_category'
|
|
|
|
|
|
|
|
get 'choose_category'
|
|
|
|
|
|
|
|
post 'multi_destroy'
|
|
|
|
|
|
|
|
post 'add_to_homework_bank'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :student_works do
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get :shixun_work
|
|
|
|
|
|
|
|
get :shixun_work_report
|
|
|
|
|
|
|
|
post :adjust_review_score
|
|
|
|
|
|
|
|
get :commit_des
|
|
|
|
|
|
|
|
post :update_des
|
|
|
|
|
|
|
|
post :adjust_score
|
|
|
|
|
|
|
|
post :add_score
|
|
|
|
|
|
|
|
post :add_score_reply
|
|
|
|
|
|
|
|
delete :destroy_score
|
|
|
|
|
|
|
|
delete :destroy_score_reply
|
|
|
|
|
|
|
|
get :comment_list
|
|
|
|
|
|
|
|
get :supply_attachments
|
|
|
|
|
|
|
|
post :revise_attachment
|
|
|
|
|
|
|
|
delete :destroy_score
|
|
|
|
|
|
|
|
post :appeal_anonymous_score
|
|
|
|
|
|
|
|
post :deal_appeal_score
|
|
|
|
|
|
|
|
post :cancel_appeal
|
|
|
|
|
|
|
|
get :export_shixun_work_report
|
|
|
|
|
|
|
|
post :shixun_work_comment
|
|
|
|
|
|
|
|
delete :destroy_work_comment
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
get :search_member_list
|
|
|
|
|
|
|
|
get :check_project
|
|
|
|
|
|
|
|
get :cancel_relate_project
|
|
|
|
|
|
|
|
post :relate_project
|
|
|
|
|
|
|
|
delete :delete_work
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :boards, shallow: true do
|
|
|
|
|
|
|
|
resources :messages do
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
delete :bulk_delete
|
|
|
|
|
|
|
|
put :bulk_move
|
|
|
|
|
|
|
|
post :bulk_send
|
|
|
|
|
|
|
|
put :bulk_public
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get :reply_list
|
|
|
|
|
|
|
|
put :sticky_top
|
|
|
|
|
|
|
|
post :reply
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
post 'move_category'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :exercises ,only:[:index,:new,:create] do
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
get :my_exercises #我的试卷题库
|
|
|
|
|
|
|
|
get :public_exercises # 公共试卷题库
|
|
|
|
|
|
|
|
get :publish_modal # 立即发布弹窗内容
|
|
|
|
|
|
|
|
get :end_modal # 立即截止弹窗内容
|
|
|
|
|
|
|
|
post :destroys
|
|
|
|
|
|
|
|
post :set_public # 设置公开
|
|
|
|
|
|
|
|
post :join_exercise_banks # 加入习题集
|
|
|
|
|
|
|
|
post :publish # 立即发布
|
|
|
|
|
|
|
|
post :end_exercise # 立即截止
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :course_groups, shallow: true do
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
post 'rename_group'
|
|
|
|
|
|
|
|
post 'move_category'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :graduation_topics do
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
post :refuse_student_topic
|
|
|
|
|
|
|
|
post :accept_student_topic
|
|
|
|
|
|
|
|
post :student_select_topic
|
|
|
|
|
|
|
|
post :student_cancel_topic
|
|
|
|
|
|
|
|
get :show_detail
|
|
|
|
|
|
|
|
get :show_comment
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
delete :destroys
|
|
|
|
|
|
|
|
post :set_public
|
|
|
|
|
|
|
|
get :export
|
|
|
|
|
|
|
|
post :add_to_bank
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :graduation_tasks, shallow: true do
|
|
|
|
|
|
|
|
resources :graduation_works do
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
post 'search_member_list'
|
|
|
|
|
|
|
|
get 'check_project'
|
|
|
|
|
|
|
|
post 'relate_project'
|
|
|
|
|
|
|
|
get 'cancel_relate_project'
|
|
|
|
|
|
|
|
post 'revise_attachment'
|
|
|
|
|
|
|
|
delete 'delete_work'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get 'comment_list'
|
|
|
|
|
|
|
|
post 'add_score'
|
|
|
|
|
|
|
|
post 'adjust_score'
|
|
|
|
|
|
|
|
delete 'delete_score'
|
|
|
|
|
|
|
|
get 'supply_attachments'
|
|
|
|
|
|
|
|
post 'revise_attachment'
|
|
|
|
|
|
|
|
post :assign_teacher
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
member do
|
|
|
|
|
|
|
|
get 'settings'
|
|
|
|
|
|
|
|
post 'update_settings'
|
|
|
|
|
|
|
|
get 'tasks_list'
|
|
|
|
|
|
|
|
get :show_comment
|
|
|
|
|
|
|
|
get :cross_comment_setting
|
|
|
|
|
|
|
|
post :assign_works
|
|
|
|
|
|
|
|
post :commit_comment_setting
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collection do
|
|
|
|
|
|
|
|
post 'set_public'
|
|
|
|
|
|
|
|
delete 'multi_destroy'
|
|
|
|
|
|
|
|
post 'publish_task'
|
|
|
|
|
|
|
|
post 'end_task'
|
|
|
|
|
|
|
|
post 'add_to_bank'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources :polls,except:[:index,:new,:create] do
|
|
|
|
resources :polls,except:[:index,:new,:create] do
|
|
|
|
member do
|
|
|
|
member do
|
|
|
|